v1

latestOpenAPI 3.0.0Apache 2.02026-07-263079321.1 MB
Contract

Accept or deny

Accept or deny a contract

  • Accept or deny a contract using their unique identifier.
  • Aceite ou recusa de contrato usando seu identificador exclusivo.
put/contracts/{id}

Path parameters

idinteger required

Proposal ID

Request body

acceptedboolean
refusal_reasonstring

Example request

{
  "accepted": true
}

Response

OK

accepted_atstring
approved_user_idinteger
contract_linkstring
contract_namestring
created_atstring
idinteger
proposal_idinteger
refusal_reasonstring
statusstring
storage_file_namestring
updated_atstring
user_idinteger

Example response

{
  "accepted_at": "2024-09-06T17:37:43.464658136Z",
  "approved_user_id": 1,
  "contract_link": "https://storage.googleapis.com/bucket-contract/contract-1",
  "contract_name": "contract-1",
  "created_at": "2020-01-01 12:00:00",
  "id": 1,
  "proposal_id": 1,
  "status": "UPLOADED",
  "storage_file_name": "contract-1",
  "updated_at": "2020-01-01 12:00:00",
  "user_id": 1
}