openapi: 3.2.0 info: title: users-api-v2 Uuid API version: '1.1' servers: - url: https://{care-instance}/api/v2/users variables: care-instance: default: care-instance security: - {} tags: - name: UUID paths: /uuid/{userUUID}/state: put: summary: Set Agent State by UUID description: Set the State (`stateUUID`) of an active Agent identified by UUID (`userUUID`) operationId: change-agent-state-by-uuid parameters: - name: stateUUID in: query description: The unique identifier for the state to which the Agent will be switched. schema: type: string - name: userUUID in: path description: The universally unique identifier (UUID) of the Agent being placed into a new state. schema: type: string required: true responses: '200': description: '200' content: application/json: examples: Result: value: "{\n \"status\": \"success\",\n \"data\": \"OK\"\n}" schema: type: object properties: status: type: string example: success data: type: string example: OK '400': description: '400' content: application/json: examples: Result: value: "{\n \"status\": \"fail\",\n \"message\": \"State with UUID c0ed7f9f-f98a-40a8-a9a4-example56ba8 not available to team TEAM.5228 for User 1234567 with user UUID example-7eef-4196-ad76-cb2f2ebbdd03\"\n}" schema: type: object properties: status: type: string example: fail message: type: string example: State with UUID c0ed7f9f-f98a-40a8-a9a4-example56ba8 not available to team TEAM.5228 for User 1234567 with user UUID example-7eef-4196-ad76-cb2f2ebbdd03 '500': description: '500' content: application/json: examples: Result: value: "{\n \"status\": \"fail\",\n \"message\": \"User 1234567 with user UUID example-7eef-4196-ad76-cb2f2ebbdd03 does not have an active session, could not set state to example-5c3e-4c2f-8949-670425bb4e18\"\n}" schema: type: object properties: status: type: string example: fail message: type: string example: User 1234567 with user UUID example-7eef-4196-ad76-cb2f2ebbdd03 does not have an active session, could not set state to example-5c3e-4c2f-8949-670425bb4e18 deprecated: false security: [] x-readme: code-samples: - language: curl code: curl -L -u username:password 'https://{care-instance}/api/v2/users/uuid/{userUUID}/state?stateUUID=677af682-c4dd-4add-9a83-example' samples-languages: - curl tags: - UUID x-readme: headers: [] explorer-enabled: true proxy-enabled: true x-readme-fauxas: true