### Get All Roles Source: https://documenter.getpostman.com/view/4308783/SVSGMpwr/index Retrieves a list of all roles within an agency. This method requires specific headers for authorization and identification. ```curl curl --location 'https://api.ninjacat.io/management_open_api/roles' \ --header 'Client-Id: AGENCY_CLIENT_ID' \ --header 'Accept: application/json' \ --header 'Content-Type: application/json' \ --header 'x-api-key: AGENCY_IDENTIFIER _KEY' \ --data '' ``` -------------------------------- ### Get Specific Role Source: https://documenter.getpostman.com/view/4308783/SVSGMpwr/index Fetches a single role by its unique identifier. The role ID must be a valid existing role in the agency. Requires proper authorization and client identification headers. ```curl curl --location -g 'https://api.ninjacat.io/management_open_api/role/{{role_id}}' \ --header 'Client-Id: AGENCY_CLIENT_ID' \ --header 'Accept: application/json' \ --header 'Content-Type: application/json' \ --header 'x-api-key: AGENCY_IDENTIFIER _KEY' \ --data '' ``` -------------------------------- ### Add Role using cURL Source: https://documenter.getpostman.com/view/4308783/SVSGMpwr/index This cURL command demonstrates how to add a new role to the NinjaCat agency management system. It requires specific headers including Client-Id, Accept, Content-Type, and an x-api-key, along with a JSON payload for the role details. ```cURL curl --location 'https://api.ninjacat.io/management_open_api/role' \ --header 'Client-Id: AGENCY_CLIENT_ID' \ --header 'Accept: application/json' \ --header 'Content-Type: application/json' \ --header 'x-api-key: AGENCY_IDENTIFIER _KEY' \ --data '{ "name": null, "description": null, "permissionIds": null }' ``` -------------------------------- ### Update Role using cURL Source: https://documenter.getpostman.com/view/4308783/SVSGMpwr/index This cURL command illustrates how to update an existing role within the NinjaCat agency management system. It targets a specific role ID and requires the same authentication and content headers as the add role operation, along with a JSON payload for the updated role information. ```cURL curl --location -g 'https://api.ninjacat.io/management_open_api/role/{{role_id}}' \ --header 'Client-Id: AGENCY_CLIENT_ID' \ --header 'Accept: application/json' \ --header 'Content-Type: application/json' \ --header 'x-api-key: AGENCY_IDENTIFIER _KEY' \ --data '{ "name": null, "description": null, "permissionIds": null }' ``` -------------------------------- ### Delete Role Source: https://documenter.getpostman.com/view/4308783/SVSGMpwr/index Deletes a specific role from the agency using its ID. The provided role ID must correspond to an existing role. This operation requires authentication and specific headers. ```curl curl --location -g --request DELETE 'https://api.ninjacat.io/management_open_api/role/{{role_id}}' \ --header 'Client-Id: AGENCY_CLIENT_ID' \ --header 'Accept: application/json' \ --header 'Content-Type: application/json' \ --header 'x-api-key: AGENCY_IDENTIFIER _KEY' \ --data '' ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.