Create a package revision
POST/v2/faas/package-revisions
Creates a new revision for an existing package with function definitions. Permissions: functions.package:write on account
Request
Example
{
"data": {
"id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"packageId": "550e8400-e29b-41d4-a716-446655440000",
"name": "v1.2.0",
"description": "Added profanity filter function",
"packageDeploymentsTotal": 2,
"packageDeploymentsRunning": 1,
"createdDttm": "2026-01-15T10:30:00.000Z",
"updatedDttm": "2026-02-01T14:20:00.000Z",
"functions": [
{
"id": "b2c3d4e5-f6a7-8901-bcde-f12345678901",
"functionRevisionId": "c3d4e5f6-a7b8-9012-cdef-123456789012",
"packageRevisionId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"name": "Profanity Filter",
"language": "JAVASCRIPT",
"type": "BEFORE_PUBLISH",
"sortOrder": 0,
"code": "export default (request) => { console.log(request); return request.ok(); };",
"config": {},
"createdDttm": "2026-01-15T10:30:00.000Z",
"updatedDttm": "2026-02-01T14:20:00.000Z"
}
]
},
"meta": {
"timestamp": "2026-03-10T12:00:00.000Z",
"correlationId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
},
"errors": []
}Example
{
"meta": {
"timestamp": "2026-03-10T12:00:00.000Z",
"correlationId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
},
"errors": [
{
"code": "FAAS-404",
"message": "Entity not found"
}
]
}Example
{
"meta": {
"timestamp": "2026-03-10T12:00:00.000Z",
"correlationId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
},
"errors": [
{
"code": "FAAS-404",
"message": "Entity not found"
}
]
}Example
{
"meta": {
"timestamp": "2026-03-10T12:00:00.000Z",
"correlationId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
},
"errors": [
{
"code": "FAAS-404",
"message": "Entity not found"
}
]
}Example
{
"meta": {
"timestamp": "2026-03-10T12:00:00.000Z",
"correlationId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
},
"errors": [
{
"code": "FAAS-404",
"message": "Entity not found"
}
]
}Example
{
"meta": {
"timestamp": "2026-03-10T12:00:00.000Z",
"correlationId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
},
"errors": [
{
"code": "FAAS-404",
"message": "Entity not found"
}
]
}Example
{
"meta": {
"timestamp": "2026-03-10T12:00:00.000Z",
"correlationId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
},
"errors": [
{
"code": "FAAS-404",
"message": "Entity not found"
}
]
}