Create an Assignment Favorite
post
/api/restapi/assignmentFavorite
Send a request to this endpoint to create an assignment favorite. An application object will be created using the JSON data provided in the request body.
Request
There are no request parameters for this operation.
Supported Media Types
- application/json
Root Schema : ApiEntityAssignmentFavoriteInput
Type:
object
Title:
ApiEntityAssignmentFavoriteInput
This entity represents a AssignmentFavorite object, a unique AssignmentFavorite object can be identified by the following combinations of the fields.
Show Source
- assignmentFavoriteId
- applicationUser,assignmentId
- activityCode,projectCode,workspaceCode,resourceCode,applicationUser
- activityCode,projectCode,workspaceCode,resourceCode,userName
- assignmentId,userName
-
activityCode: string
Minimum Length:
0
Maximum Length:60
The activity code of an assignment. -
applicationUser(required): integer
(int64)
The unique identifier of a user.
-
assignmentFavoriteId: integer
(int64)
The unique identifier of an assignment favorite.
-
assignmentId(required): integer
(int64)
The unique identifier for the assignment.The assignment object can also be identified by its unique criteria.
-
link: string(url)Read Only:true
Deprecated. As of 24.5.The self-link to the object. This field is populated only in the responses generated by the batch create APIs. -
projectCode: string
Minimum Length:
1
Maximum Length:60
The project code of an assignment. -
resourceClass: string
Allowed Values:
[ "RESOURCE", "ROLE" ]
The class of the resource of an assignment. -
resourceCode: string
Minimum Length:
1
Maximum Length:60
The user-specified identifier of a resource. -
updateDate: string(date-time)Read Only:true
Deprecated. As of 24.5.Date when the record was last updated. -
userName: string
Maximum Length:
255
The username a user uses to log in to the system. -
workspaceCode: string
Minimum Length:
0
Maximum Length:60
The workspace code of an assignment.
Examples
Back to Top
Response
Supported Media Types
- application/json
201 Response
The object was successfully created.
Root Schema : ApiEntityAssignmentFavorite
Type:
object
Title:
Show Source
ApiEntityAssignmentFavorite
-
activityCode: string
Minimum Length:
0
Maximum Length:60
The activity code of an assignment. -
applicationUser: integer
(int64)
The unique identifier of a user.
-
assignmentFavoriteId: integer
(int64)
The unique identifier of an assignment favorite.
-
assignmentId: integer
(int64)
The unique identifier for the assignment.The assignment object can also be identified by its unique criteria.
-
link: string
(url)
The self-link to the object. This field is populated only in the responses generated by the batch create APIs.
-
projectCode: string
Minimum Length:
1
Maximum Length:60
The project code of an assignment. -
resourceClass: string
Allowed Values:
[ "RESOURCE", "ROLE" ]
The class of the resource of an assignment. -
resourceCode: string
Minimum Length:
1
Maximum Length:60
The user-specified identifier of a resource. -
updateDate: string
(date-time)
Date when the record was last updated.
-
userName: string
Maximum Length:
255
The username a user uses to log in to the system. -
workspaceCode: string
Minimum Length:
0
Maximum Length:60
The workspace code of an assignment.
400 Response
Invalid input for the Assignment Favorite service.