200 |
|
|
application/json
model |
example
{
"title": "changes",
"$schema": "http://json-schema.org/draft-04/schema#",
"javaType": "com.sos.joc.model.inventory.changes.ShowChangesResponse",
"type": "object",
"properties": {
"deliveryDate": {
"description": "Value is UTC timestamp in ISO 8601 YYYY-MM-DDThh:mm:ss.sZ or empty",
"type": "string",
"format": "date-time"
},
"changes": {
"type": "array",
"items": {
"javaType": "com.sos.joc.model.inventory.changes.common.Change",
"type": "object",
"extends": {
"javaType": "com.sos.joc.model.inventory.changes.common.ChangeIdentifier",
"type": "object",
"required": [
"name"
],
"properties": {
"name": {
"type": "string",
"pattern": "^[^<>]*$",
"maxLength": 100
},
"title": {
"type": "string",
"pattern": "^[^<>]*$",
"maxLength": 255
},
"state": {
"javaType": "com.sos.joc.model.inventory.changes.common.ChangeState",
"type": "string",
"enum": [
"OPEN",
"CLOSED",
"PUBLISHED"
]
}
},
"additionalProperties": false
},
"required": [
"name"
],
"properties": {
"created": {
"description": "Value is UTC timestamp in ISO 8601 YYYY-MM-DDThh:mm:ss.sZ or empty",
"type": "string",
"format": "date-time"
},
"modified": {
"description": "Value is UTC timestamp in ISO 8601 YYYY-MM-DDThh:mm:ss.sZ or empty",
"type": "string",
"format": "date-time"
},
"closed": {
"description": "Value is UTC timestamp in ISO 8601 YYYY-MM-DDThh:mm:ss.sZ or empty",
"type": "string",
"format": "date-time"
},
"owner": {
"type": "string",
"pattern": "^[^<>]*$",
"maxLength": 255
},
"lastPublishedBy": {
"type": "string",
"pattern": "^[^<>]*$",
"maxLength": 255
},
"configurations": {
"type": "array",
"uniqueItems": true,
"items": {
"javaType": "com.sos.joc.model.inventory.changes.common.ChangeItem",
"type": "object",
"required": [
"name",
"objectType"
],
"properties": {
"name": {
"type": "string",
"pattern": "^[^<>]*$",
"maxLength": 255
},
"path": {
"description": "absolute path of an object.",
"type": "string",
"pattern": "^(/|(/[^/\\\\<>?:\"|*]+)+)$",
"maxLength": 255,
"minLength": 1
},
"objectType": {
"javaType": "com.sos.joc.model.inventory.common.ConfigurationType",
"type": "string",
"enum": [
"FOLDER",
"WORKFLOW",
"JOBCLASS",
"JOBRESOURCE",
"LOCK",
"NOTICEBOARD",
"FILEORDERSOURCE",
"WORKINGDAYSCALENDAR",
"NONWORKINGDAYSCALENDAR",
"SCHEDULE",
"INCLUDESCRIPT",
"JOBTEMPLATE",
"DEPLOYMENTDESCRIPTOR",
"DESCRIPTORFOLDER"
]
},
"valid": {
"type": "boolean",
"default": false
},
"deployed": {
"type": "boolean",
"default": false
},
"released": {
"type": "boolean",
"default": false
}
},
"additionalProperties": false
}
}
},
"additionalProperties": false
}
}
},
"additionalProperties": false
}
{ "deliveryDate": "2024-10-22T12:23:31.651+00:00", "changes": [{ "created": "2024-09-17T13:11:47.000+00:00", "modified": "2024-09-17T13:11:47.000+00:00", "owner": "root", "configurations": [{ "name": "wf_lock_test", "path": "/2024/misc/wf_lock_test", "objectType": "WORKFLOW", "valid": true, "deployed": false, "released": false }, { "name": "wf_fos_test", "path": "/2024/misc/wf_fos_test", "objectType": "WORKFLOW", "valid": true, "deployed": true, "released": false }, { "name": "wf_total_test", "path": "/2024/misc/wf_total_test", "objectType": "WORKFLOW", "valid": true, "deployed": false, "released": false }, { "name": "wf_test", "path": "/2024/misc/wf_test", "objectType": "WORKFLOW", "valid": true, "deployed": false, "released": false }, { "name": "wf_test_2_expect", "path": "/2024/misc/wf_test_2_expect", "objectType": "WORKFLOW", "valid": true, "deployed": true, "released": false }, { "name": "wf_aoi_test", "path": "/2024/misc/wf_aoi_test", "objectType": "WORKFLOW", "valid": true, "deployed": false, "released": false }, { "name": "wf_jt_job", "path": "/2024/misc/wf_jt_job", "objectType": "WORKFLOW", "valid": true, "deployed": false, "released": false }], "name": "myFirstChange", "title": "this is my first change", "state": "OPEN" }] }
{
"deliveryDate": "2024-10-22T12:23:31.651+00:00",
"changes": [{
"created": "2024-09-17T13:11:47.000+00:00",
"modified": "2024-09-17T13:11:47.000+00:00",
"owner": "root",
"configurations": [{
"name": "wf_lock_test",
"path": "/2024/misc/wf_lock_test",
"objectType": "WORKFLOW",
"valid": true,
"deployed": false,
"released": false
}, {
"name": "wf_fos_test",
"path": "/2024/misc/wf_fos_test",
"objectType": "WORKFLOW",
"valid": true,
"deployed": true,
"released": false
}, {
"name": "wf_total_test",
"path": "/2024/misc/wf_total_test",
"objectType": "WORKFLOW",
"valid": true,
"deployed": false,
"released": false
}, {
"name": "wf_test",
"path": "/2024/misc/wf_test",
"objectType": "WORKFLOW",
"valid": true,
"deployed": false,
"released": false
}, {
"name": "wf_test_2_expect",
"path": "/2024/misc/wf_test_2_expect",
"objectType": "WORKFLOW",
"valid": true,
"deployed": true,
"released": false
}, {
"name": "wf_aoi_test",
"path": "/2024/misc/wf_aoi_test",
"objectType": "WORKFLOW",
"valid": true,
"deployed": false,
"released": false
}, {
"name": "wf_jt_job",
"path": "/2024/misc/wf_jt_job",
"objectType": "WORKFLOW",
"valid": true,
"deployed": false,
"released": false
}],
"name": "myFirstChange",
"title": "this is my first change",
"state": "OPEN"
}]
}
|
401 |
Unauthorized! |
|
application/json
model |
example
{
"title": "authentication",
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"required": [
"isAuthenticated"
],
"properties": {
"user": {
"type": "string"
},
"accessToken": {
"type": "string"
},
"message": {
"type": "string"
},
"role": {
"type": "string"
},
"isAuthenticated": {
"type": "boolean"
},
"isPermitted": {
"type": "boolean",
"default": false
},
"sessionTimeout": {
"type": "integer",
"default": 1800
},
"enableTouch": {
"type": "boolean",
"default": true
}
}
}
{ "user": "root", "message": "Oops!", "isAuthenticated": false, "isPermitted": false }
{
"user": "root",
"message": "Oops!",
"isAuthenticated": false,
"isPermitted": false
}
|
403 |
Forbidden! The user doesn't have sufficient permissions for 'changes' |
|
application/json
model |
example
{
"title": "authentication",
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"required": [
"isAuthenticated"
],
"properties": {
"user": {
"type": "string"
},
"accessToken": {
"type": "string"
},
"message": {
"type": "string"
},
"role": {
"type": "string"
},
"isAuthenticated": {
"type": "boolean"
},
"isPermitted": {
"type": "boolean",
"default": false
},
"sessionTimeout": {
"type": "integer",
"default": 1800
},
"enableTouch": {
"type": "boolean",
"default": true
}
}
}
{ "user": "root", "message": "You don't have sufficient permissions for ...", "role": "all", "isAuthenticated": true, "isPermitted": false }
{
"user": "root",
"message": "You don't have sufficient permissions for ...",
"role": "all",
"isAuthenticated": true,
"isPermitted": false
}
|
420 |
'changes' failed! |
|
application/json
model |
example
{
"title": "error object with delivery date",
"$schema": "http://json-schema.org/draft-04/schema#",
"javaType": "com.sos.joc.model.common.Err420",
"type": "object",
"required": [
"deliveryDate",
"error"
],
"properties": {
"deliveryDate": {
"description": "Value is UTC timestamp in ISO 8601 YYYY-MM-DDThh:mm:ss.sZ or empty",
"type": "string",
"format": "date-time"
},
"surveyDate": {
"description": "Value is UTC timestamp in ISO 8601 YYYY-MM-DDThh:mm:ss.sZ or empty",
"type": "string",
"format": "date-time"
},
"error": {
"javaType": "com.sos.joc.model.common.Err",
"type": "object",
"required": [
"code",
"message"
],
"properties": {
"code": {
"type": "string"
},
"message": {
"type": "string"
}
}
}
}
}
{ "deliveryDate": "2016-05-05T21:13:35Z", "surveyDate": "2016-05-05T21:13:33Z", "error": { "code": "JOC-420", "message": "changes failed!" } }
{
"deliveryDate": "2016-05-05T21:13:35Z",
"surveyDate": "2016-05-05T21:13:33Z",
"error": {
"code": "JOC-420",
"message": "changes failed!"
}
}
|
433 |
4-eyes principle: Forbidden! The user needs approval process for 'changes' |
|
application/json
model |
example
{
"title": "FourEyesResponse",
"$schema": "http://json-schema.org/draft-04/schema#",
"javaType": "com.sos.joc.model.security.foureyes.FourEyesResponse",
"type": "object",
"extends": {
"javaType": "com.sos.joc.model.security.foureyes.ApprovalBase",
"type": "object",
"properties": {
"requestor": {
"type": "string",
"pattern": "^[^<>]*$",
"maxLength": 255,
"minLength": 1
},
"requestUrl": {
"type": "string",
"pattern": "^[^<>]*$",
"maxLength": 255,
"minLength": 1
},
"requestBody": {
"type": "object",
"javaType": "com.sos.joc.model.security.foureyes.RequestBody",
"additionalProperties": true
},
"category": {
"javaType": "com.sos.joc.model.audit.CategoryType",
"type": "string",
"enum": [
"INVENTORY",
"CONTROLLER",
"DAILYPLAN",
"OTHERS",
"DEPLOYMENT",
"DOCUMENTATIONS",
"CERTIFICATES",
"IDENTITY",
"SETTINGS",
"MONITORING",
"UNKNOWN"
]
}
},
"additionalProperties": false
},
"properties": {
"deliveryDate": {
"description": "Value is UTC timestamp in ISO 8601 YYYY-MM-DDThh:mm:ss.sZ or empty",
"type": "string",
"format": "date-time"
},
"message": {
"type": "string",
"pattern": "^[^<>]*$",
"maxLength": 255,
"minLength": 1
},
"approvers": {
"type": "array",
"items": {
"javaType": "com.sos.joc.model.security.foureyes.Approver",
"type": "object",
"required": [
"accountName",
"firstName",
"lastName"
],
"properties": {
"accountName": {
"type": "string",
"pattern": "^[^<>]*$",
"maxLength": 255,
"minLength": 1
},
"firstName": {
"type": "string",
"pattern": "^[^<>]*$",
"maxLength": 30,
"minLength": 1
},
"lastName": {
"type": "string",
"pattern": "^[^<>]*$",
"maxLength": 30,
"minLength": 1
},
"email": {
"type": "string",
"pattern": "^[^<>]*$",
"maxLength": 255
}
},
"additionalProperties": false
}
}
},
"additionalProperties": false
}
{ "deliveryDate": "2025-05-12T21:13:35Z", "accountName": "user1", "request": "./orders/add", "requestBody": { "controllerId": "standalone", "orders": [{ "workflowPath": "myWorkflow", "scheduledFor": "now" }] }, "category": "CONTROLLER", "objectType": "WORKFLOW" "objectName": "myWorkflow", "numOfObjects": 1, "action": "add orders" }
{
"deliveryDate": "2025-05-12T21:13:35Z",
"accountName": "user1",
"request": "./orders/add",
"requestBody": {
"controllerId": "standalone",
"orders": [{
"workflowPath": "myWorkflow",
"scheduledFor": "now"
}]
},
"category": "CONTROLLER",
"objectType": "WORKFLOW"
"objectName": "myWorkflow",
"numOfObjects": 1,
"action": "add orders"
}
|
440 |
Login Timeout! The client's session has expired and must log in again. |
|
application/json
model |
example
{
"title": "authentication",
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"required": [
"isAuthenticated"
],
"properties": {
"user": {
"type": "string"
},
"accessToken": {
"type": "string"
},
"message": {
"type": "string"
},
"role": {
"type": "string"
},
"isAuthenticated": {
"type": "boolean"
},
"isPermitted": {
"type": "boolean",
"default": false
},
"sessionTimeout": {
"type": "integer",
"default": 1800
},
"enableTouch": {
"type": "boolean",
"default": true
}
}
}
{ "user": "root", "message": "Session has expired. Please log in again", "role": "all", "isAuthenticated": false, "isPermitted": false }
{
"user": "root",
"message": "Session has expired. Please log in again",
"role": "all",
"isAuthenticated": false,
"isPermitted": false
}
|