Skip to content

Instantly share code, notes, and snippets.

@karn09
Created February 6, 2017 22:19
Show Gist options
  • Save karn09/63e0190c1f87c7623a71ba592e3135d9 to your computer and use it in GitHub Desktop.
Save karn09/63e0190c1f87c7623a71ba592e3135d9 to your computer and use it in GitHub Desktop.
kobject.update with custom
{
"name": "kustomer.kobject.update",
"app": "kustomer",
"type": "internal_api",
"inputTemplate": {
"data": {
"custom": "/#custom",
"tags": "/#tags",
"data": "/#data",
"icon": "/#icon",
"images": "/#images",
"description": "/#description",
"title": "/#title",
"parent": "/#parent",
"externalId": "/#externalId"
},
"method": "PUT",
"uri": "http://sobjects:8000/v1/klasses/{{{klassName}}}/{{{id}}}",
"orgId": "/#_env.orgId"
},
"outputTemplate": {
"klass": "/#body.data.relationships.klass.data.id",
"customer": "/#body.data.relationships.customer.data.id",
"org": "/#body.data.relationships.org.data.id",
"createdAt": "/#body.data.attributes.createdAt",
"updatedAt": "/#body.data.attributes.updatedAt",
"custom": "/#body.data.attributes.custom",
"tags": "/#body.data.attributes.tags",
"data": "/#body.data.attributes.data",
"images": "/#body.data.attributes.images",
"icon": "/#body.data.attributes.icon",
"description": "/#body.data.attributes.description",
"title": "/#body.data.attributes.title",
"externalId": "/#body.data.attributes.externalId",
"id": "/#body.data.id"
},
"inputSchema": {
"additionalProperties": false,
"required": [
"klassName",
"id",
"data",
"title"
],
"properties": {
"custom": {
"type": "object"
},
"tags": {
"items": {
"type": "string"
},
"type": "array"
},
"data": {
"type": "object"
},
"icon": {
"type": "string"
},
"images": {
"items": {
"type": "string"
},
"type": "array"
},
"description": {
"type": "string"
},
"title": {
"type": "string"
},
"parent": {
"type": "object"
},
"externalId": {
"type": "string"
},
"klassName": {
"type": "string"
},
"id": {
"type": "string"
}
},
"type": "object"
},
"outputSchema": {
"properties": {
"custom": {
"type": "object"
},
"klass": {
"type": "string"
},
"customer": {
"type": "string"
},
"org": {
"type": "string"
},
"updatedAt": {
"type": "string"
},
"createdAt": {
"type": "string"
},
"tags": {
"items": {
"type": "string"
},
"type": "array"
},
"data": {
"type": "object"
},
"images": {
"items": {
"type": "string"
},
"type": "array"
},
"icon": {
"type": "string"
},
"description": {
"type": "string"
},
"title": {
"type": "string"
},
"externalId": {
"type": "string"
},
"id": {
"type": "string"
}
},
"type": "object"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment