Avetta Pegasus Scope Scope Person Role Controller API
The pegasusScope_scope-person-role-controller API from Avetta — 3 operation(s) for pegasusscope_scope-person-role-controller.
The pegasusScope_scope-person-role-controller API from Avetta — 3 operation(s) for pegasusscope_scope-person-role-controller.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/avetta:avetta-pegasusscope-scope-person-role-controller-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: Avetta Pegasus Scope Scope Person Role Controller API
version: APSO-1355
x-logo:
url: avetta_logo.png
description: 'Operations tagged pegasusScope_scope-person-role-controller across 2 of this provider''s published API definitions: avetta-pegasus-dist.json, avetta-pegasus-openapi.yml. Each path carries the servers of the definition it was published in.'
servers:
- description: EPE (Test Environment)
url: https://epe-onsitetrackeasy.com.au/onsite-rest
- description: Production
url: https://secure.onsitetrackeasy.com.au/onsite-rest
tags:
- name: pegasusScope_scope-person-role-controller
x-displayName: scope-person-role-controller
paths:
/api/v1/scope/{scopeId}/person/{personId}/role/{assignmentStepInstanceId}:
put:
tags:
- pegasusScope_scope-person-role-controller
operationId: updateRoleAssignment
parameters:
- name: scopeId
in: path
required: true
schema:
type: integer
format: int32
- name: personId
in: path
required: true
schema:
type: integer
format: int32
- name: assignmentStepInstanceId
in: path
required: true
schema:
type: integer
format: int32
- name: suppressQueuedStatusUpdate
in: query
required: false
schema:
type: boolean
default: true
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/3.29.14_AssignRoleResource'
required: true
responses:
'201':
description: Created
content:
'*/*':
schema:
$ref: '#/components/schemas/3.29.14_RoleAssignmentDetailsResource'
'400':
description: Bad Request
content:
'*/*':
schema:
$ref: '#/components/schemas/3.29.14_FullErrorResource'
'401':
description: Unauthorized
content:
'*/*':
schema:
$ref: '#/components/schemas/3.29.14_ErrorResource'
'403':
description: Forbidden
content:
'*/*':
schema:
$ref: '#/components/schemas/3.29.14_ErrorResource'
'404':
description: Not Found
content:
'*/*':
schema:
$ref: '#/components/schemas/3.29.14_FullErrorResource'
'500':
description: Internal Server Error
content:
'*/*':
schema:
$ref: '#/components/schemas/3.29.14_ErrorResource'
security:
- 3.29.14_security_auth: []
3.29.14_security_apikey: []
summary: Update role assignment
x-summary-source: derived
patch:
tags:
- pegasusScope_scope-person-role-controller
operationId: patchRole
parameters:
- name: scopeId
in: path
required: true
schema:
type: integer
format: int32
- name: personId
in: path
required: true
schema:
type: integer
format: int32
- name: assignmentStepInstanceId
in: path
required: true
schema:
type: integer
format: int32
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/3.29.14_PatchRoleResource'
required: true
responses:
'204':
description: No Content
'400':
description: Bad Request
content:
'*/*':
schema:
$ref: '#/components/schemas/3.29.14_FullErrorResource'
'401':
description: Unauthorized
content:
'*/*':
schema:
$ref: '#/components/schemas/3.29.14_ErrorResource'
'403':
description: Forbidden
content:
'*/*':
schema:
$ref: '#/components/schemas/3.29.14_ErrorResource'
'404':
description: Not Found
content:
'*/*':
schema:
$ref: '#/components/schemas/3.29.14_FullErrorResource'
'500':
description: Internal Server Error
content:
'*/*':
schema:
$ref: '#/components/schemas/3.29.14_ErrorResource'
security:
- 3.29.14_security_auth: []
3.29.14_security_apikey: []
summary: Patch role
x-summary-source: derived
servers:
- description: EPE (Test Environment)
url: https://epe-onsitetrackeasy.com.au/onsite-rest
- description: Production
url: https://secure.onsitetrackeasy.com.au/onsite-rest
/api/v1/scope/{scopeId}/person/{personId}/role:
get:
tags:
- pegasusScope_scope-person-role-controller
operationId: getRoles
parameters:
- name: scopeId
in: path
required: true
schema:
type: integer
format: int32
- name: personId
in: path
required: true
schema:
type: integer
format: int32
- name: includeForeign
in: query
required: false
schema:
type: boolean
responses:
'200':
description: OK
content:
'*/*':
schema:
type: array
items:
$ref: '#/components/schemas/3.29.14_RoleAssignmentDetailsResource'
'400':
description: Bad Request
content:
'*/*':
schema:
$ref: '#/components/schemas/3.29.14_FullErrorResource'
'401':
description: Unauthorized
content:
'*/*':
schema:
$ref: '#/components/schemas/3.29.14_ErrorResource'
'403':
description: Forbidden
content:
'*/*':
schema:
$ref: '#/components/schemas/3.29.14_ErrorResource'
'404':
description: Not Found
content:
'*/*':
schema:
$ref: '#/components/schemas/3.29.14_FullErrorResource'
'500':
description: Internal Server Error
content:
'*/*':
schema:
$ref: '#/components/schemas/3.29.14_ErrorResource'
security:
- 3.29.14_security_auth: []
3.29.14_security_apikey: []
summary: Get roles
x-summary-source: derived
post:
tags:
- pegasusScope_scope-person-role-controller
operationId: assignRole
parameters:
- name: scopeId
in: path
required: true
schema:
type: integer
format: int32
- name: personId
in: path
required: true
schema:
type: integer
format: int32
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/3.29.14_AssignRoleResource'
required: true
responses:
'201':
description: Created
content:
'*/*':
schema:
$ref: '#/components/schemas/3.29.14_RoleAssignmentDetailsResource'
'400':
description: Bad Request
content:
'*/*':
schema:
$ref: '#/components/schemas/3.29.14_FullErrorResource'
'401':
description: Unauthorized
content:
'*/*':
schema:
$ref: '#/components/schemas/3.29.14_ErrorResource'
'403':
description: Forbidden
content:
'*/*':
schema:
$ref: '#/components/schemas/3.29.14_ErrorResource'
'404':
description: Not Found
content:
'*/*':
schema:
$ref: '#/components/schemas/3.29.14_FullErrorResource'
'500':
description: Internal Server Error
content:
'*/*':
schema:
$ref: '#/components/schemas/3.29.14_ErrorResource'
security:
- 3.29.14_security_auth: []
3.29.14_security_apikey: []
summary: Assign role
x-summary-source: derived
servers:
- description: EPE (Test Environment)
url: https://epe-onsitetrackeasy.com.au/onsite-rest
- description: Production
url: https://secure.onsitetrackeasy.com.au/onsite-rest
/api/v1/scope/{scopeId}/person/{personId}/role/{assignmentStepDefinitionId}/assignment-scopes:
get:
tags:
- pegasusScope_scope-person-role-controller
operationId: getPossibleRoleAssignmentScopes
parameters:
- name: scopeId
in: path
required: true
schema:
type: integer
format: int32
- name: personId
in: path
required: true
schema:
type: integer
format: int32
- name: assignmentStepDefinitionId
in: path
required: true
schema:
type: integer
format: int32
responses:
'200':
description: OK
content:
'*/*':
schema:
type: array
items:
$ref: '#/components/schemas/3.29.14_ScopeDetailResource'
'400':
description: Bad Request
content:
'*/*':
schema:
$ref: '#/components/schemas/3.29.14_FullErrorResource'
'401':
description: Unauthorized
content:
'*/*':
schema:
$ref: '#/components/schemas/3.29.14_ErrorResource'
'403':
description: Forbidden
content:
'*/*':
schema:
$ref: '#/components/schemas/3.29.14_ErrorResource'
'404':
description: Not Found
content:
'*/*':
schema:
$ref: '#/components/schemas/3.29.14_FullErrorResource'
'500':
description: Internal Server Error
content:
'*/*':
schema:
$ref: '#/components/schemas/3.29.14_ErrorResource'
security:
- 3.29.14_security_auth: []
3.29.14_security_apikey: []
summary: Get possible role assignment scopes
x-summary-source: derived
servers:
- description: EPE (Test Environment)
url: https://epe-onsitetrackeasy.com.au/onsite-rest
- description: Production
url: https://secure.onsitetrackeasy.com.au/onsite-rest
components:
schemas:
3.29.14_Problem:
type: object
properties:
instance:
type: string
format: uri
type:
type: string
format: uri
parameters:
type: object
additionalProperties:
type: object
detail:
type: string
title:
type: string
status:
$ref: '#/components/schemas/3.29.14_StatusType'
3.29.14_RoleAssignmentDetailsResource:
type: object
properties:
id:
type: integer
format: int32
scope:
$ref: '#/components/schemas/3.29.14_KeyedIntegerResource'
person:
$ref: '#/components/schemas/3.29.14_KeyedIntegerResource'
role:
$ref: '#/components/schemas/3.29.14_KeyedIntegerResource'
active:
type: boolean
suspended:
type: boolean
expiry:
type: string
status:
type: string
enum:
- ALL
- COMPLETE
- WORKING_TOWARDS
- PAST_OR_INACTIVE
- SUSPENDED
updateTime:
type: string
pending:
type: boolean
assignmentPending:
type: boolean
assignmentActive:
type: boolean
hasUnfilledOptionalCompetencies:
type: boolean
roleScope:
$ref: '#/components/schemas/3.29.14_ScopeDetailResource'
definitionScope:
$ref: '#/components/schemas/3.29.14_ScopeDetailResource'
assignmentScope:
$ref: '#/components/schemas/3.29.14_ScopeDetailResource'
steps:
type: array
items:
$ref: '#/components/schemas/3.29.14_CardholderRoleStepResource'
createdBy:
$ref: '#/components/schemas/3.29.14_KeyedIntegerResource'
createdTime:
type: string
3.29.14_CardholderRoleStepResource:
type: object
properties:
step:
type: string
enum:
- ASSESSED
- AUTHORISED
- APPOINTED
date:
type: string
mandatory:
type: boolean
user:
$ref: '#/components/schemas/3.29.14_KeyedIntegerResource'
authoriser:
type: string
notes:
type: string
3.29.14_StatusType:
type: object
properties:
statusCode:
type: integer
format: int32
reasonPhrase:
type: string
3.29.14_ScopeDetailResource:
type: object
properties:
id:
type: integer
format: int32
name:
type: string
timezone:
type: string
fatigueLimit:
type: integer
format: int32
siteId:
type: integer
format: int32
realmId:
type: integer
format: int32
concoId:
type: integer
format: int32
type:
type: string
enum:
- SYSTEM
- REALM
- SITE
- LOCATION
- CONCO_WEB
- EMPLOYEE
- UNKNOWN
typeDisplayName:
type: string
ownerName:
type: string
connectAccountId:
type: string
connectClient:
type: boolean
parentId:
type: integer
format: int32
realm:
$ref: '#/components/schemas/3.29.14_KeyedIntegerResource'
site:
$ref: '#/components/schemas/3.29.14_KeyedIntegerResource'
conco:
$ref: '#/components/schemas/3.29.14_KeyedIntegerResource'
topLevel:
type: boolean
3.29.14_AssignRoleResource:
required:
- assignmentStepDefinitionId
- personId
- scopeId
type: object
properties:
id:
type: integer
format: int32
personId:
type: integer
format: int32
assignmentStepDefinitionId:
type: integer
format: int32
scopeId:
type: integer
format: int32
suspended:
type: boolean
active:
type: boolean
steps:
type: array
items:
$ref: '#/components/schemas/3.29.14_AssignRoleStepCommand'
adminNote:
$ref: '#/components/schemas/3.29.14_AdminNoteUserInputCommand'
requestId:
type: string
suppressAutoEnrolment:
type: boolean
3.29.14_KeyedIntegerResource:
type: object
properties:
id:
type: integer
format: int32
name:
type: string
3.29.14_AssignRoleStepCommand:
type: object
properties:
date:
type: string
step:
type: string
enum:
- ASSESSED
- AUTHORISED
- APPOINTED
notes:
type: string
userPersonId:
type: integer
format: int32
authoriser:
type: string
3.29.14_FullErrorResource:
type: object
properties:
errorType:
type: string
enum:
- GENERAL_ERROR
- BAD_REQUEST
- FORBIDDEN
- UNAUTHORISED
- NO_ACCESS_TO_PORTAL
- INVALID_PASSWORD
- NOT_FOUND
- CONSTRAINT_VIOLATION
- VALIDATION_ERROR
- ALREADY_EXISTS
- DATA_MISMATCH
- NOT_AN_EMPLOYEE
- CANNOT_BE_TERMINATED
- TOO_MANY_FAILED_ATTEMPTS
- REQUIRED_FIELD_MISSING
- VERIFICATION_TOKEN_EXPIRED
- PURCHASE_ORDER_EXPIRED
- DUPLICATE_PAYMENT
- PAYMENT_ERROR
- CANNOT_BE_UPDATED
- PENDING_CARD_IN_PROGRESS
- CANNOT_ASSIGN
- INVALID_PERSON_STATE
error:
type: string
field:
type: string
problems:
type: array
items:
$ref: '#/components/schemas/3.29.14_Problem'
errorDetail:
type: string
3.29.14_PatchRoleResource:
type: object
properties:
assignmentStepInstanceId:
type: integer
format: int32
patchMap:
type: object
additionalProperties:
type: object
adminNote:
$ref: '#/components/schemas/3.29.14_AdminNoteUserInputCommand'
3.29.14_ErrorResource:
type: object
properties:
errorType:
type: string
enum:
- GENERAL_ERROR
- BAD_REQUEST
- FORBIDDEN
- UNAUTHORISED
- NO_ACCESS_TO_PORTAL
- INVALID_PASSWORD
- NOT_FOUND
- CONSTRAINT_VIOLATION
- VALIDATION_ERROR
- ALREADY_EXISTS
- DATA_MISMATCH
- NOT_AN_EMPLOYEE
- CANNOT_BE_TERMINATED
- TOO_MANY_FAILED_ATTEMPTS
- REQUIRED_FIELD_MISSING
- VERIFICATION_TOKEN_EXPIRED
- PURCHASE_ORDER_EXPIRED
- DUPLICATE_PAYMENT
- PAYMENT_ERROR
- CANNOT_BE_UPDATED
- PENDING_CARD_IN_PROGRESS
- CANNOT_ASSIGN
- INVALID_PERSON_STATE
error:
type: string
field:
type: string
problems:
type: array
items:
$ref: '#/components/schemas/3.29.14_Problem'
3.29.14_AdminNoteUserInputCommand:
required:
- authoriser
- comment
type: object
properties:
comment:
type: string
authoriser:
type: string
securitySchemes:
3.29.14_security_auth:
type: oauth2
scheme: Bearer
flows:
authorizationCode:
authorizationUrl: https://login.poweredbyonsite.com/cas/oidc/authorize
tokenUrl: https://login.poweredbyonsite.com/cas/oidc/accessToken
scopes:
pegasus: Pegasus Authentication Scope
3.29.14_security_apikey:
type: apiKey
name: api_key
in: header
x-refined-from:
- avetta-pegasus-dist.json
- avetta-pegasus-openapi.yml
x-tagGroups:
- name: Compliance
tags:
- Authentication
- Compliance
- name: Account
tags:
- Account
- name: Worksite Safety
tags:
- Worksite-Safety
- name: Deprecated Endpoints
tags:
- Deprecated Endpoints
- Error Handling