2.0info:   6.77.1   eng_engenharia  description:   x-senior-domain: erp_man  x-senior-domain-path: erp_man  x-senior-service-path: eng_engenharia  contact:    name: Senior X Platform    url: https://dev.senior.com.br    email: seniorx-dev@senior.com.brhost: api.senior.com.br /erp_man/eng_engenhariasecurityDefinitions:  bearerAuth:    type: apiKey    in: header    name: Authorization  – application/json  – application/jsonparameters:  clientId:    name: client_id    type: string    in: header    required: true    description: Identificação da aplicação cadastrada no portal do desenvolvedor (api.xplatform.com.br)paths:  /obterUrlUploadAnexo:    post:      description: Cria o local para armazenamento e busca URL para upload do anexo
### Resources
- res://senior.com.br/erp_man/eng_engenharia/engenharia – Visualizar      x-senior-event: false      deprecated: false      tags:        – Endpoints      security:        – bearerAuth: []      parameters:        –  #/parameters/clientId        – name: input          in: body          required: true          schema:            type: object            required:              – nomeAnexo            properties:              nomeAnexo:                type: string                description: nome do arquivo anexo      responses:        200:          description: Ok          schema:            type: object            required:              – targetObject              – url              – nome              – versao            properties:              targetObject:                type: string                description: targetObject do arquivo necessário no blobService              url:                type: string                description: URL para upload do arquivo              nome:                type: string                description: nome do arquivo, informado no input              versao:                type: string                description: versão do arquivo criado        default:          description: Error response          schema:             #/definitions/genericError    get:      description: Cria o local para armazenamento e busca URL para upload do anexo
### Resources
- res://senior.com.br/erp_man/eng_engenharia/engenharia – Visualizar      x-senior-event: false      deprecated: false      tags:        – Endpoints      security:        – bearerAuth: []      parameters:        –  #/parameters/clientId        – name: input          in: body          required: true          schema:            type: object            required:              – nomeAnexo            properties:              nomeAnexo:                type: string                description: nome do arquivo anexo      responses:        200:          description: Ok          schema:            type: object            required:              – targetObject              – url              – nome              – versao            properties:              targetObject:                type: string                description: targetObject do arquivo necessário no blobService              url:                type: string                description: URL para upload do arquivo              nome:                type: string                description: nome do arquivo, informado no input              versao:                type: string                description: versão do arquivo criado        default:          description: Error response          schema:             #/definitions/genericError  /obterUrlDownloadAnexo:    post:      description: Obtém a URL para download do anexo
### Resources
- res://senior.com.br/erp_man/eng_engenharia/engenharia – Visualizar      x-senior-event: false      deprecated: false      tags:        – Endpoints      security:        – bearerAuth: []      parameters:        –  #/parameters/clientId        – name: input          in: body          required: true          schema:            type: object            required:              – nomeAnexo              – versao            properties:              targetObject:                type: string                description: targetObject do arquivo necessario no blobService              nomeAnexo:                type: string                description: nome do anexo              versao:                type: string                description: Versão do arquivo      responses:        200:          description: Ok          schema:            type: object            required:              – url            properties:              url:                type: string                description: URL para download do recuro        default:          description: Error response          schema:             #/definitions/genericError    get:      description: Obtém a URL para download do anexo
### Resources
- res://senior.com.br/erp_man/eng_engenharia/engenharia – Visualizar      x-senior-event: false      deprecated: false      tags:        – Endpoints      security:        – bearerAuth: []      parameters:        –  #/parameters/clientId        – name: input          in: body          required: true          schema:            type: object            required:              – nomeAnexo              – versao            properties:              targetObject:                type: string                description: targetObject do arquivo necessario no blobService              nomeAnexo:                type: string                description: nome do anexo              versao:                type: string                description: Versão do arquivo      responses:        200:          description: Ok          schema:            type: object            required:              – url            properties:              url:                type: string                description: URL para download do recuro        default:          description: Error response          schema:             #/definitions/genericError  /salvarAnexo:    post:      description: Confirma a gravação do arquivo no serviço na versão em que ocorreu o upload
### Resources
- res://senior.com.br/erp_man/eng_engenharia/engenharia – Processar      x-senior-event: false      deprecated: false      tags:        – Endpoints      security:        – bearerAuth: []      parameters:        –  #/parameters/clientId        – name: input          in: body          required: true          schema:            type: object            required:              – nomeAnexo              – versao            properties:              targetObject:                type: string                description: targetObject do arquivo necessário no blobService              nomeAnexo:                type: string                description: nome do anexo              versao:                type: string                description: versão do anexo (obtida no retorno da primitiva obterUrlUploadAnexo)      responses:        200:          description: Ok          schema:            type: object            required:              – result            properties:              result:                type: string                description: Resultado da operação (OK)        default:          description: Error response          schema:             #/definitions/genericError  /excluirAnexo:    post:      description: Exclui o anexo do repositório
### Resources
- res://senior.com.br/erp_man/eng_engenharia/engenharia – Processar      x-senior-event: false      deprecated: false      tags:        – Endpoints      security:        – bearerAuth: []      parameters:        –  #/parameters/clientId        – name: input          in: body          required: true          schema:            type: object            required:              – nomeAnexo            properties:              targetObject:                type: string                description: targetObject do arquivo necessario no blobService              nomeAnexo:                type: string                description: nome do anexo      responses:        200:          description: Ok          schema:            type: object            required:              – result            properties:              result:                type: string                description: Resultado da operação (OK)        default:          description: Error response          schema:             #/definitions/genericErrordefinitions:  genericError:    properties:      message:        type: string        description: Messaging describing the error.      reason:        type: string        description: A symbolic code identifying the category of the reason of the error.        enum:          – BAD_REQUEST          – UNAUTHORIZED          – PAYMENT_REQUIRED          – FORBIDDEN          – OBJECT_NOT_FOUND          – REQUEST_TIMEOUT          – GONE          – UNPROCESSABLE          – INTERNAL_ERROR          – NOT_IMPLEMENTED          – SERVICE_UNAVAILABLE          – INSUFFICIENT_STORAGE