R
Railway12mo ago
h246810

Question about Railway Webhooks JSON Output

So I have a REST API that receives webhook payloads from a railway server. My question is, what is the keyword that's used for the status field when the deployment fails? Right now status is SUCCESS Here is some example output with important stuff commented out
{

type: 'DEPLOY',

project: {

id: '',

name: '',

description: null,

createdAt: '2023-10-19T23:13:04.387Z'

},

deployment: {

id: '',

meta: {

logsV2: true,

buildOnly: false,

configFile: null,

volumeMounts: [],

rootDirectory: null,

serviceManifest: [Object],

nixpacksProviders: [Array],

fileServiceManifest: {},

ignoreWatchPatterns: true,

propertyFileMapping: {}

},

creator: {

id: '',

name: '',

avatar: '';

}

},

environment: { id: '' },

status: 'SUCCESS',

timestamp: '2023-11-08T20:51:26.806Z',

service: { id: '', name: '' }

}
{

type: 'DEPLOY',

project: {

id: '',

name: '',

description: null,

createdAt: '2023-10-19T23:13:04.387Z'

},

deployment: {

id: '',

meta: {

logsV2: true,

buildOnly: false,

configFile: null,

volumeMounts: [],

rootDirectory: null,

serviceManifest: [Object],

nixpacksProviders: [Array],

fileServiceManifest: {},

ignoreWatchPatterns: true,

propertyFileMapping: {}

},

creator: {

id: '',

name: '',

avatar: '';

}

},

environment: { id: '' },

status: 'SUCCESS',

timestamp: '2023-11-08T20:51:26.806Z',

service: { id: '', name: '' }

}
3 Replies
Percy
Percy12mo ago
Project ID: 0423feca-1d4b-493b-a9fa-18ffa127a486
h246810
h24681012mo ago
0423feca-1d4b-493b-a9fa-18ffa127a486
Brody
Brody12mo ago
DeploymentStatus
Enum Values
- BUILDING
- CRASHED
- DEPLOYING
- FAILED
- INITIALIZING
- QUEUED
- REMOVED
- REMOVING
- SKIPPED
- SUCCESS
- WAITING
DeploymentStatus
Enum Values
- BUILDING
- CRASHED
- DEPLOYING
- FAILED
- INITIALIZING
- QUEUED
- REMOVED
- REMOVING
- SKIPPED
- SUCCESS
- WAITING
Want results from more Discord servers?
Add your server