cancel
Showing results for 
Search instead for 
Did you mean: 

How to set custom content property in Alfresco REST API

brijeshnk
Star Contributor
Star Contributor

Hi there ,

I need to upload document using REST API . Along with this , I do have custom type (polSmiley Tongueolicy) defined and custom properties (pol:documentid) also .  When i upload using POSTMan , i can see uploaded document and custom type in Alfresco , attached to  uploaded to document .  I can can custom propoerty shows blank  , please see screen shot below for POSTMAN request  . Am i doing anything wrong ? please help

image

Please see , above highlighted POSTMan client request. I dont see documentId "DOC_998" in Alfresco , I can see custom type "polSmiley Tongueolicy" in uploaded document .  I can see , pol:documentId also, but blank

1 ACCEPTED ANSWER

kaynezhang
World-Class Innovator
World-Class Innovator

Using this api ,I'm afraid not ,I recommend folloing api,it is more powerful

http://dmstest03:8080/alfresco/api/-default-/public/alfresco/versions/1/nodes/{ parent node id}/children

View answer in original post

4 REPLIES 4

kaynezhang
World-Class Innovator
World-Class Innovator

Please use following api

http://dmstest03:8080/alfresco/api/-default-/public/alfresco/versions/1/nodes/{ parent node id}/children

for documentation please refer to https://api-explorer.alfresco.com/api-explorer/#!/nodes/createNode

Hi thanks for the response . But my problem is,

While i am uploading document , can i set custom propoerty ?  . I can set custom type as mentioned in my original posting .   for upload document i am using following API

http://dmstest03:8080/alfresco/service/api/upload

thanksa a lot

Brijesh N K

kaynezhang
World-Class Innovator
World-Class Innovator

Using this api ,I'm afraid not ,I recommend folloing api,it is more powerful

http://dmstest03:8080/alfresco/api/-default-/public/alfresco/versions/1/nodes/{ parent node id}/children

@kaynezhang  , thanks a a lot for this respone . I got it . Will go with this options