Returns a list of Comments.
Filter | Description |
---|---|
commentable_type |
The type of the commentable object |
commentable_id |
The ID of the commentable object |
company_id |
The ID of the company |
content |
The content of the comment |
id |
The ID of the comment |
Bad Request
Unauthorized
Forbidden
[- {
- "data": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "type": "string",
- "attributes": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "created_at": "2019-08-24T14:15:22Z",
- "content": "string",
- "commentable_id": "bc962e0a-e9bd-40a2-b979-1a485002e595",
- "commentable_type": "string",
- "updated_at": "2019-08-24T14:15:22Z",
- "author": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "access_role": "string",
- "active": true,
- "active_source": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "department_id": "string",
- "email": "string",
- "employee_type": "string",
- "end_date": "2019-08-24T14:15:22Z",
- "first_name": "string",
- "image_url": "string",
- "in_audit_scope": true,
- "invited": true,
- "invited_at": "2019-08-24T14:15:22Z",
- "last_name": "string",
- "manager_name": "string",
- "middle_name": "string",
- "name": "string",
- "onboarding_status": "string",
- "personnel_status": "string",
- "preferred_first_name": "string",
- "role": "string",
- "secureframe_agent_acknowledged_at": "2019-08-24T14:15:22Z",
- "start_date": "2019-08-24T14:15:22Z",
- "title": "string",
- "updated_at": "2019-08-24T14:15:22Z"
}
}, - "relationships": { },
- "links": { }
}, - "includes": { }
}
]
Creates a new Comment
Bad Request
Unauthorized
Forbidden
{- "data": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "type": "string",
- "attributes": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "created_at": "2019-08-24T14:15:22Z",
- "content": "string",
- "commentable_id": "bc962e0a-e9bd-40a2-b979-1a485002e595",
- "commentable_type": "string",
- "updated_at": "2019-08-24T14:15:22Z",
- "author": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "access_role": "string",
- "active": true,
- "active_source": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "department_id": "string",
- "email": "string",
- "employee_type": "string",
- "end_date": "2019-08-24T14:15:22Z",
- "first_name": "string",
- "image_url": "string",
- "in_audit_scope": true,
- "invited": true,
- "invited_at": "2019-08-24T14:15:22Z",
- "last_name": "string",
- "manager_name": "string",
- "middle_name": "string",
- "name": "string",
- "onboarding_status": "string",
- "personnel_status": "string",
- "preferred_first_name": "string",
- "role": "string",
- "secureframe_agent_acknowledged_at": "2019-08-24T14:15:22Z",
- "start_date": "2019-08-24T14:15:22Z",
- "title": "string",
- "updated_at": "2019-08-24T14:15:22Z"
}
}, - "relationships": { },
- "links": { }
}, - "includes": { }
}
Returns a single Comment by ID
Bad Request
Unauthorized
Forbidden
Resource not found
{- "data": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "type": "string",
- "attributes": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "created_at": "2019-08-24T14:15:22Z",
- "content": "string",
- "commentable_id": "bc962e0a-e9bd-40a2-b979-1a485002e595",
- "commentable_type": "string",
- "updated_at": "2019-08-24T14:15:22Z",
- "author": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "access_role": "string",
- "active": true,
- "active_source": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "department_id": "string",
- "email": "string",
- "employee_type": "string",
- "end_date": "2019-08-24T14:15:22Z",
- "first_name": "string",
- "image_url": "string",
- "in_audit_scope": true,
- "invited": true,
- "invited_at": "2019-08-24T14:15:22Z",
- "last_name": "string",
- "manager_name": "string",
- "middle_name": "string",
- "name": "string",
- "onboarding_status": "string",
- "personnel_status": "string",
- "preferred_first_name": "string",
- "role": "string",
- "secureframe_agent_acknowledged_at": "2019-08-24T14:15:22Z",
- "start_date": "2019-08-24T14:15:22Z",
- "title": "string",
- "updated_at": "2019-08-24T14:15:22Z"
}
}, - "relationships": { },
- "links": { }
}, - "includes": { }
}
Updates a Comment by ID
Bad Request
Unauthorized
Forbidden
Resource not found
{- "data": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "type": "string",
- "attributes": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "created_at": "2019-08-24T14:15:22Z",
- "content": "string",
- "commentable_id": "bc962e0a-e9bd-40a2-b979-1a485002e595",
- "commentable_type": "string",
- "updated_at": "2019-08-24T14:15:22Z",
- "author": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "access_role": "string",
- "active": true,
- "active_source": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "department_id": "string",
- "email": "string",
- "employee_type": "string",
- "end_date": "2019-08-24T14:15:22Z",
- "first_name": "string",
- "image_url": "string",
- "in_audit_scope": true,
- "invited": true,
- "invited_at": "2019-08-24T14:15:22Z",
- "last_name": "string",
- "manager_name": "string",
- "middle_name": "string",
- "name": "string",
- "onboarding_status": "string",
- "personnel_status": "string",
- "preferred_first_name": "string",
- "role": "string",
- "secureframe_agent_acknowledged_at": "2019-08-24T14:15:22Z",
- "start_date": "2019-08-24T14:15:22Z",
- "title": "string",
- "updated_at": "2019-08-24T14:15:22Z"
}
}, - "relationships": { },
- "links": { }
}, - "includes": { }
}