Created
February 6, 2017 22:20
-
-
Save karn09/67f76cd182e8b491c879a82f8138a35a to your computer and use it in GitHub Desktop.
kobject create with customer and custom attribute
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "kustomer.kobject.create-with-customer", | |
"app": "kustomer", | |
"type": "internal_api", | |
"inputTemplate": { | |
"orgId": "/#_env.orgId", | |
"uri": "http://sobjects:8000/v1/customers/{{{customer}}}/klasses/{{{klassName}}}", | |
"method": "POST", | |
"data": { | |
"externalId": "/#externalId", | |
"parent": "/#parent", | |
"title": "/#title", | |
"description": "/#description", | |
"images": "/#images", | |
"icon": "/#icon", | |
"data": "/#data", | |
"tags": "/#tags", | |
"custom": "/#custom" | |
} | |
}, | |
"outputTemplate": { | |
"id": "/#body.data.id", | |
"externalId": "/#body.data.attributes.externalId", | |
"title": "/#body.data.attributes.title", | |
"description": "/#body.data.attributes.description", | |
"icon": "/#body.data.attributes.icon", | |
"images": "/#body.data.attributes.images", | |
"data": "/#body.data.attributes.data", | |
"tags": "/#body.data.attributes.tags", | |
"custom": "/#body.data.attributes.custom", | |
"updatedAt": "/#body.data.attributes.updatedAt", | |
"createdAt": "/#body.data.attributes.createdAt", | |
"org": "/#body.data.relationships.org.data.id", | |
"customer": "/#body.data.relationships.customer.data.id", | |
"klass": "/#body.data.relationships.klass.data.id" | |
}, | |
"inputSchema": { | |
"type": "object", | |
"properties": { | |
"klassName": { | |
"type": "string" | |
}, | |
"customer": { | |
"type": "string" | |
}, | |
"externalId": { | |
"type": "string" | |
}, | |
"parent": { | |
"type": "object" | |
}, | |
"title": { | |
"type": "string" | |
}, | |
"description": { | |
"type": "string" | |
}, | |
"images": { | |
"type": "array", | |
"items": { | |
"type": "string" | |
} | |
}, | |
"icon": { | |
"type": "string" | |
}, | |
"data": { | |
"type": "object" | |
}, | |
"tags": { | |
"type": "array", | |
"items": { | |
"type": "string" | |
} | |
}, | |
"custom": { | |
"type": "object" | |
} | |
}, | |
"required": [ | |
"klassName", | |
"customer", | |
"data", | |
"title" | |
], | |
"additionalProperties": false | |
}, | |
"outputSchema": { | |
"type": "object", | |
"properties": { | |
"id": { | |
"type": "string" | |
}, | |
"externalId": { | |
"type": "string" | |
}, | |
"title": { | |
"type": "string" | |
}, | |
"description": { | |
"type": "string" | |
}, | |
"icon": { | |
"type": "string" | |
}, | |
"images": { | |
"type": "array", | |
"items": { | |
"type": "string" | |
} | |
}, | |
"data": { | |
"type": "object" | |
}, | |
"tags": { | |
"type": "array", | |
"items": { | |
"type": "string" | |
} | |
}, | |
"createdAt": { | |
"type": "string" | |
}, | |
"updatedAt": { | |
"type": "string" | |
}, | |
"org": { | |
"type": "string" | |
}, | |
"customer": { | |
"type": "string" | |
}, | |
"klass": { | |
"type": "string" | |
}, | |
"custom": { | |
"type": "object" | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment