Details
-
Type:
Story
-
Status: Closed (View Workflow)
-
Resolution: Done
-
Affects Version/s: None
-
Fix Version/s: ACS 5.2
-
Component/s: REST API
-
Labels:
-
Work Funnel:Feature
-
Epic Link:
-
Story Points:3
Description
As a developer using the REST API I want to be able to create/associate a secondary child association (multi-file) between two nodes (parent and child).
Summary
POST /nodes/{sourceNodeId}/secondary-children => { "childId":"f2d626fb-d766-4231-af07-7ac3aab41766", "assocType":"my:assocType" } Response example: <= { "childId":"f2d626fb-d766-4231-af07-7ac3aab41766", "assocType":"my:assocType" }
Acceptance Criteria
basePath: /alfresco/api/-default-/public/alfresco/versions/1 tags: - name: child associations description: Node child associations paths: '/nodes/{parentId}/secondary-children/': post: tags: - child associations - 5.2 changes summary: Add secondary child association description: | Add secondary child association between parent and child node for given association type. operationId: addChildAssoc produces: - application/json parameters: - name: childId in: path description: The identifier of a node. required: true type: string - in: body name: assocChildBody description: The child node id and assoc type. required: true schema: required: - childId - assocType properties: childId: type: string assocType: type: string responses: '201': description: Successful response '400': description: Invalid parameter, eg. unknown assocType '404': description: If **parentId** or **childId** does not exist '409': description: Association already exists (same assoc type between same two nodes ids) '422': description: Model integrity exception default: description: Error response schema: $ref: '#/definitions/Error'
For live API spec, please see:
Attachments
Issue Links
- is related to by
-
REPO-147 Delete Secondary Child Association (unfile)
- Closed
-
REPO-177 Create Peer Association
- Closed
-
REPO-252 Create Child Association
- Closed
-
REPO-301 Support listing of secondary children
- Closed
-
REPO-330 Support ability to specify associations (peer and secondary child) during node creation
- Closed
(2 relates to)