Skip to content

Create renewal

POST
/api/renewals
curl --request POST \
--url http://localhost:3000/api/renewals \
--header 'Content-Type: application/json' \
--cookie session=<session> \
--data '{ "name": "example", "vendorId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "contractId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "renewalDate": "example", "amount": "example", "status": "example", "notes": "example" }'
Media type application/json
object
name
required
string
vendorId
string format: uuid
contractId
string format: uuid
renewalDate
string
amount
string
status
string
notes
string
Example generated
{
"name": "example",
"vendorId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0",
"contractId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0",
"renewalDate": "example",
"amount": "example",
"status": "example",
"notes": "example"
}

Renewal created

Media type application/json
object
data
object
id
required
string format: uuid
name
required
string
vendorId
string format: uuid
nullable
contractId
string format: uuid
nullable
renewalDate
string
nullable
amount
string
nullable
status
string
nullable
notes
string
nullable
createdAt
required
string format: date-time
updatedAt
required
string format: date-time
Example generated
{
"data": {
"id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0",
"name": "example",
"vendorId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0",
"contractId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0",
"renewalDate": "example",
"amount": "example",
"status": "example",
"notes": "example",
"createdAt": "2026-04-15T12:00:00Z",
"updatedAt": "2026-04-15T12:00:00Z"
}
}

Validation error

Media type application/json
object
error
required
string
Example
{
"error": "Not found"
}

Not authenticated

Media type application/json
object
error
required
string
Example
{
"error": "Not found"
}