
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-19-2020 08:45 AM
Hi there ,
I need to upload document using REST API . Along with this , I do have custom type (pololicy) 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
Please see , above highlighted POSTMan client request. I dont see documentId "DOC_998" in Alfresco , I can see custom type "pololicy" in uploaded document . I can see , pol:documentId also, but blank
- Labels:
-
Alfresco Content Services
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-19-2020 10:46 PM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-19-2020 09:06 AM
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

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-19-2020 09:55 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-19-2020 10:46 PM
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

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-20-2020 03:20 AM
@kaynezhang , thanks a a lot for this respone . I got it . Will go with this options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-05-2025 10:56 AM
This doesn't work for me when I want to update an existing document.
(I'm trying to update the properties of a file)
{
"name": "2891",
"nodeType": "cm:content",
"relativePath": "/DataHub/EntityData/product/picture",
"properties": {
"cm:title": "asdas.jpeg"
}
}
And I'm getting error below
{
"error": {
"errorKey": "Duplicate child name not allowed: 2891",
"statusCode": 409,
"briefSummary": "01050078 Duplicate child name not allowed: 2891",
"stackTrace": "For security reasons the stack trace is no longer displayed, but the property is kept for previous versions",
"descriptionURL": "https://api-explorer.alfresco.com"
}
}
