v1

latestOpenAPI 3.0.02026-07-24161215397.4 KB
Assignments

Delete an assignment

Remove an assignment by id. Use this to correct an incorrect assignment.

Required scopes: flex.space.assignments.delete

delete/api/v2/organizations/{orgSlug}/assignments/{assignmentId}

Path parameters

assignmentIdstring required

The _id of the assignment to delete

orgSlugstring required

organization slug

Response

_idstring

The _id of the assignment.

resourcestring

The _id of the resource with which the assignment is associated.

membershipstring

The _id of the membership with which the assignment is associated.

startDatestring date-time

The start date of the assignment.

endDatestring date-time

The end date of the assignment.

Example response

{
  "_id": "61f273a906afd1846de1fbb3",
  "resource": "61f2736224071037dea8956c",
  "membership": "6262b4de9d02c386771e3923",
  "startDate": "2024-08-21T16:00:00.000Z",
  "endDate": "2024-08-21T16:00:00.000Z"
}