Add Assignment Target
- Print
- PDF
Add Assignment Target
- Print
- PDF
Article summary
Did you find this summary helpful?
Thank you for your feedback
Adds assignment target to the assignment.
Request
- POST /assignments/{assignmentId}/targets
Request path
Parameters | Requirement status | Type | Restrictions | Description |
---|---|---|---|---|
assignmentId | Y | String | Assignment Id |
Request bodies
{
"targetType": "String",
"targetIds": ["String", "String"]
}
Parameters | Requirement status | Type | Description | Restrictions |
---|---|---|---|---|
targetType | N | String | Target type | user, group |
targetIds | N | Array | Target ID |
Response
Response bodies
{
"id": "String",
"success" : "boolean",
"message": "String"
}
Parameters | Type | Description | Restrictions |
---|---|---|---|
id | String | Assignment ID | |
success | Boolean | Whether it is a success | |
message | String | Error message when failed |
Errors
Errors that specifically occur while using this action are listed below. For error response format, see ErrorResponse.
For more information about common errors, see the NAVER Cloud Platform API.
HTTP status code | Error code | Error message |
---|---|---|
400 | 9050 | This user doesn't exist |
400 | 9061 | This group doesn't exist |
400 | 9080 | Assignment does not exist |
400 | 9081 | Assignment target does not match |
400 | 9083 | Assignment target does not exist |
400 | 9086 | Target already exists in the assignment |
Was this article helpful?