Skip to main content
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

string
required
Your API key for authenticationExample: sk_live_1234567890abcdef
string
required
Your organization UUIDExample: a8315ef3-dd50-43f8-b7ce-d839e68d51fa

Path Parameters

string
required
UUID of the parent datasetExample: "a1b2c3d4-e5f6-7890-abcd-ef1234567890"

Body Parameters

string
required
UUID of the organization this assignment applies to
string
required
Email address of the data owner who will receive campaign invitationsExample: "facility-manager@example.com"
string
UUID of a specific facility. Omit for an organization-level assignment.
string
UUID of an existing Dcycle user. If provided, the user sees in-app KPI forms.

Response

Returns the created assignment (HTTP 201).
string
Assignment UUID.
string
Parent dataset UUID.
string
Organization UUID the assignment targets.
string | null
Facility UUID if the assignment is facility-scoped.
string | null
User UUID of the data owner (if they have a Dcycle account).
string
Email address of the recipient.
datetime
Creation timestamp (ISO 8601).
string | null
Last update timestamp (ISO 8601).

Example

Successful Response

Common Errors

401 Unauthorized

Cause: Missing or invalid API key

403 Forbidden

Cause: The authenticated user is not a member of the organization

404 Not Found

Cause: Dataset not found

422 Validation Error

Cause: Invalid email address

List Assignments

View all data owner assignments

Update Assignment

Change the data owner