openapi: 3.2.0 info: title: Automile Resource Owner Task Message3 API version: v1 tags: - name: ResourceOwnerTaskMessage3 paths: /v1/resourceowner/taskmessage3/{taskMessageId}: get: tags: - ResourceOwnerTaskMessage3 summary: Get a task message operationId: GetResourceOwnerTaskMessage3 parameters: - in: path name: taskMessageId description: The Id of the task message required: true schema: type: integer format: int32 responses: '200': description: The task message details are returned content: text/plain: schema: $ref: '#/components/schemas/TaskMessageModel' application/json: schema: $ref: '#/components/schemas/TaskMessageModel' text/json: schema: $ref: '#/components/schemas/TaskMessageModel' '500': description: Internal server error '403': description: Not authorized to task message security: - oauth2: [] put: tags: - ResourceOwnerTaskMessage3 summary: Update a task message description: Only tasks that belongs to the user has access can be updated. operationId: UpdateResourceOwnerTaskMessage3 parameters: - in: path name: taskMessageId description: The task id required: true schema: type: integer format: int32 responses: '200': description: The task was saved '500': description: Internal server error '403': description: Not authorized to task message security: - oauth2: [] requestBody: content: application/json: schema: $ref: '#/components/schemas/TaskMessageEditModel' text/json: schema: $ref: '#/components/schemas/TaskMessageEditModel' application/*+json: schema: $ref: '#/components/schemas/TaskMessageEditModel' description: The task model /v1/resourceowner/taskmessage3: post: tags: - ResourceOwnerTaskMessage3 summary: Create a task message operationId: CreateResourceOwnerTaskMessage3 responses: '200': description: A link in the header is returned to the newly created task message '500': description: Internal server error '403': description: Not authorized to task message security: - oauth2: [] requestBody: content: application/json: schema: $ref: '#/components/schemas/TaskMessageCreateModel' text/json: schema: $ref: '#/components/schemas/TaskMessageCreateModel' application/*+json: schema: $ref: '#/components/schemas/TaskMessageCreateModel' description: The TaskMessageCreateModel components: schemas: TaskMessageCreateModel: type: object properties: TaskId: format: int32 type: integer MessageText: type: string Position: $ref: '#/components/schemas/PositionModel' additionalProperties: false PositionModel: type: object properties: Longitude: format: double type: number Latitude: format: double type: number additionalProperties: false TaskMessageModel: type: object properties: TaskMessageId: format: int32 type: integer SentByContactId: format: int32 type: integer ToContactId: format: int32 type: integer MessageText: type: string MessageSentAtUtc: format: date-time type: string SentByContactName: type: string ToContactName: type: string MessageIsRead: type: boolean Position: $ref: '#/components/schemas/PositionModel' additionalProperties: false TaskMessageEditModel: type: object properties: IsRead: type: boolean additionalProperties: false securitySchemes: oauth2: type: oauth2 flows: implicit: scopes: read: Read access to protected resources write: Write access to protected resources authorizationUrl: https://api.automile.com/login/ description: OAuth2 Implicit Grant x-provenance: method: harvested publisher: Automileab source: https://api.automile.com/swagger/v1/swagger.json note: split by refine-openapis from the provider's own published document, verified by fetch (openapi/_original/*.fetch.json); stamped by stamp-openapi-provenance.py (roadmap#793)