Create Assignment
Create Assignment
Assign a data owner to a dataset for a specific organization or facility
POST
Create Assignment
Create Assignment
Create a new assignment linking a data owner to a dataset. Each assignment specifies who will receive campaign invitations and submit KPI values for a given organization (and optionally a specific facility).Request
Headers
Your API key for authenticationExample:
sk_live_1234567890abcdefYour organization UUIDExample:
a8315ef3-dd50-43f8-b7ce-d839e68d51faPath Parameters
UUID of the parent datasetExample:
"a1b2c3d4-e5f6-7890-abcd-ef1234567890"Body Parameters
UUID of the organization this assignment applies to
Email address of the data owner who will receive campaign invitationsExample:
"facility-manager@example.com"UUID of a specific facility. Omit for an organization-level assignment.
UUID of an existing Dcycle user. If provided, the user sees in-app KPI forms.
Response
Returns the created assignment (HTTP 201).Assignment UUID.
Parent dataset UUID.
Organization UUID the assignment targets.
Facility UUID if the assignment is facility-scoped.
User UUID of the data owner (if they have a Dcycle account).
Email address of the recipient.
Creation timestamp (ISO 8601).
Last update timestamp (ISO 8601).
Example
Successful Response
Common Errors
401 Unauthorized
Cause: Missing or invalid API key403 Forbidden
Cause: The authenticated user is not a member of the organization404 Not Found
Cause: Dataset not found422 Validation Error
Cause: Invalid email addressRelated Endpoints
List Assignments
View all data owner assignments
Update Assignment
Change the data owner

