Skip to main content
POST
Create a SaaS account task on a ticket
Key: Write Scope: Company

Authorizations

Authorization
string
header
required

Use your Primo API key in the Authorization header as Bearer <API_KEY>.

Path Parameters

saasId
string
required

Body

application/json
employeeId
string
required

The Primo employee the account is for (id from the employee endpoints).

Pattern: ^[a-f\d]{24}$
direction
enum<string>
required

PROVISION creates the account, DEPROVISION removes it, UPDATE re-applies the entitlements on it.

Available options:
PROVISION,
DEPROVISION,
UPDATE
identityId
string | null

The SaaS identity to update or remove (from getEmployeeSaasIdentities). Required for UPDATE.

Pattern: ^[a-f\d]{24}$
groups
object[]
roles
object[]
licenses
object[]
organizationUnits
object[]
parentTicketId
string | null

The untyped ticket the work belongs to, such as the onboarding ticket. Omit it and Primo opens one.

Pattern: ^[a-f\d]{24}$
scheduleDate
string<date-time> | null

Creates the task SCHEDULED: an integrated application is provisioned when it wakes on this date, not now.

Pattern: ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$

Response

default - application/json
id
string
required

Intent id

taskId
string | null
required

The SAAS_PROVISIONING task that tracks the account

ticketId
string
required

The ticket holding that task: the parentTicketId sent, or the one Primo opened

employeeId
string
required
saasId
string
required
direction
enum<string>
required
Available options:
PROVISION,
DEPROVISION,
UPDATE
identityId
string | null
required
groups
object[]
required
roles
object[]
required
licenses
object[]
required
organizationUnits
object[]
required
executedAt
string<date-time> | null
required

When Primo carried the account out; null while it waits on its date or on the admin

Pattern: ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$
createdAt
string<date-time>
required
Pattern: ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$