openapi: 3.2.0 info: title: Automile Resource Owner Task API version: v1 tags: - name: ResourceOwnerTask paths: /v1/resourceowner/task/contacts: get: tags: - ResourceOwnerTask summary: Get all contacts to message with operationId: GetResourceOwnerTaskContact responses: '200': description: The contacts are returned content: text/plain: schema: type: array items: $ref: '#/components/schemas/TaskContactModel' application/json: schema: type: array items: $ref: '#/components/schemas/TaskContactModel' text/json: schema: type: array items: $ref: '#/components/schemas/TaskContactModel' security: - oauth2: [] /v1/resourceowner/task: get: tags: - ResourceOwnerTask summary: Get all tasks open and closed description: Only tasks that belongs to the user has access to will be returned. operationId: GetResourceOwnerTask responses: '200': description: The tasks are returned content: text/plain: schema: type: array items: $ref: '#/components/schemas/TaskModel' application/json: schema: type: array items: $ref: '#/components/schemas/TaskModel' text/json: schema: type: array items: $ref: '#/components/schemas/TaskModel' '500': description: Internal server error security: - oauth2: [] post: tags: - ResourceOwnerTask summary: Create a task description: Creates a task operationId: CreateResourceOwnerTaskDetails responses: '200': description: A link in the header is returned to the newly created task '500': description: Internal server error '403': description: Not authorized to task security: - oauth2: [] requestBody: content: application/json: schema: $ref: '#/components/schemas/TaskCreateModel' text/json: schema: $ref: '#/components/schemas/TaskCreateModel' application/*+json: schema: $ref: '#/components/schemas/TaskCreateModel' description: The company model put: tags: - ResourceOwnerTask summary: Update a task description: Only tasks that belongs to the user has access to will be returned. operationId: EditResourceOwnerTaskOld parameters: - in: query name: taskId description: The task id schema: type: integer format: int32 responses: '200': description: The task was saved '500': description: Internal server error '403': description: '>Not authorized to task' security: - oauth2: [] requestBody: content: application/json: schema: $ref: '#/components/schemas/TaskEditModel' text/json: schema: $ref: '#/components/schemas/TaskEditModel' application/*+json: schema: $ref: '#/components/schemas/TaskEditModel' description: The task model /v1/resourceowner/task/{taskId}: get: tags: - ResourceOwnerTask summary: Get task details operationId: GetResourceOwnerTaskDetails parameters: - in: path name: taskId description: The Id of the company required: true schema: type: integer format: int32 responses: '200': description: The tasks are returned content: text/plain: schema: $ref: '#/components/schemas/TaskDetailModel' application/json: schema: $ref: '#/components/schemas/TaskDetailModel' text/json: schema: $ref: '#/components/schemas/TaskDetailModel' '500': description: Internal server error '403': description: Not authorized to task security: - oauth2: [] put: tags: - ResourceOwnerTask summary: Update a task description: Only tasks that belongs to the user has access to will be returned. operationId: EditResourceOwnerTask parameters: - in: path name: taskId 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' security: - oauth2: [] requestBody: content: application/json: schema: $ref: '#/components/schemas/TaskEditModel' text/json: schema: $ref: '#/components/schemas/TaskEditModel' application/*+json: schema: $ref: '#/components/schemas/TaskEditModel' description: The task model components: schemas: TaskDetailModel: type: object properties: TaskId: format: int32 type: integer CreatedByContactId: format: int32 type: integer CreatedByContactName: type: string TaskAcquiredByContactId: format: int32 type: integer TaskAcquiredByContactName: type: string TaskMessages: type: array items: $ref: '#/components/schemas/TaskMessageModel' Title: type: string additionalProperties: false PositionModel: type: object properties: Longitude: format: double type: number Latitude: format: double type: number additionalProperties: false TaskContactModel: type: object properties: ContactId: format: int32 type: integer FirstName: type: string LastName: type: string ProfileImageUrl: type: string IsCheckedIn: type: boolean 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 TaskCreateModel: type: object properties: TaskType: format: int32 enum: - 0 - 1 type: integer ToContactId: format: int32 type: integer TaskMessageText: type: string Position: $ref: '#/components/schemas/PositionModel' Title: type: string additionalProperties: false TaskModel: type: object properties: TaskId: format: int32 type: integer CreatedByContactId: format: int32 type: integer CreatedByContactName: type: string TaskAcquiredByContactId: format: int32 type: integer TaskAcquiredByContactName: type: string LastMessageSentByContactId: format: int32 type: integer LastMessageSentByContactName: type: string LastMessageShortText: type: string LastMessageDateUtc: format: date-time type: string LastMessageIsRead: type: boolean CreatedByContactImageUrl: type: string TaskAcquiredByContactImageUrl: type: string TaskStatusType: format: int32 enum: - 0 - 1 type: integer TaskType: format: int32 enum: - 0 - 1 type: integer UnreadTaskMessages: format: int32 type: integer Title: type: string additionalProperties: false TaskEditModel: type: object properties: TaskStatusType: format: int32 enum: - 0 - 1 type: integer Title: type: string 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)