How to set custom content property in Alfresco REST API

cancel
Showing results for 
Search instead for 
Did you mean: 
brijeshnk
Established Member

How to set custom content property in Alfresco REST API

Jump to solution

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.png

 

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 Solution

Accepted Solutions
kaynezhang
Advanced

Re: How to set custom content property in Alfresco REST API

Jump to solution

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 solution in original post

4 Replies
kaynezhang
Advanced

Re: How to set custom content property in Alfresco REST API

Jump to solution

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

brijeshnk
Established Member

Re: How to set custom content property in Alfresco REST API

Jump to solution

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
Advanced

Re: How to set custom content property in Alfresco REST API

Jump to solution

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
brijeshnk
Established Member

Re: How to set custom content property in Alfresco REST API

Jump to solution

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