Roles
A role is a job opening you’re hiring for. Roles are stored independently of assessments, and an assessment can be linked to one or more roles. A role holds a title, and an optional job description (markdown) and/or posting URL.List Roles
Create Role
Your own ID for the role, for example the requisition ID in your ATS. Optional, up to 100 characters. It must be unique among your organization’s live roles, else the request returns
409. The candidate CSV exports it in the role_external_id column. An API key can set it. A signed-in caller must be an owner or an admin, else the request returns 403.The recruiters (user ids) to put on the new role. Every user must be in your organization, else the request returns
400 and no role is created. Optional, unless your organization sends candidate emails only to a role’s recruiters: then at least one recruiter is required, else the request returns 400.{ role } with a 201 status.
Import Roles from ATS
Bulk-create roles from open jobs in a connected ATS. One role is created per selected job, with its title and job description filled in from the ATS. Jobs already linked to a role (same provider and job id) are auto-skipped, so the call is idempotent — re-running it never creates duplicate roles. Requires the ATS integrations feature to be enabled for the org.The jobs to import. Each item is
{ jobId, title? }, where jobId is the
ATS job’s external id. title is optional and used only for skip/failure
display.{ imported, skipped, failed }, where imported is the list of created
roles ({ jobId, roleId, title }), skipped covers jobs already imported, and
failed covers jobs whose detail fetch or role creation errored.
Get Role
members. 404 if it does not exist or has been deleted.
Response
Response
Update Role
Replace your own ID for the role. Send
null or "" to clear it. It must be unique among your organization’s live roles, else the request returns 409. An API key can change it. A signed-in caller must be an owner or an admin, else the request returns 403.The full list of hiring managers (user ids) on this role. It replaces the current list. Send
[] to remove all. Every user must be in your organization. (Update-only: not accepted by Create Role.)The full list of recruiters (user ids) on this role. It replaces the current list. Every user must be in your organization. Send
[] to remove all, unless your organization sends candidate emails only to a role’s recruiters: then the list cannot be emptied, and [] returns 400. Create Role also accepts this field.Deprecated. Use
hiringManagerIds. An id sets the list to that one user. null clears the list.role and its members, the same shape as Get Role. Each person added or removed writes a role.member_added or role.member_removed entry to the audit log.
Add Role Member by Email
reviewer. If your organization does not use SSO, Gradient sends them an invite email. If it uses SSO, Gradient sends no email, and their first SSO sign-in links to that user. Only an owner or admin, in a signed-in session, can add a person who is not in the organization yet. Other callers get 403. If your organization enforces SSO, the email must be one that SSO can sign in: on one of your auto-join domains, or, with no auto-join domains, not a personal provider such as gmail.com. Other emails get 400.
Response
Response
userIds is the full list of users of that kind now on the role. inviteEmailSent is true when Gradient created the person and sent them an invite email.Delete Role
deleted_at), open to any org member. Refused with
a 409 if the role is still linked to any assessment that has not itself been
deleted — archive or reassign those assessments first, or link them to a
different role. Restore the role from the trash to undo.
Restore Role
deleted_at). Open to any org member.
Response
Response