The case to add.
Not all fields on the model are returned by default - you can request specific fields with a that looks something like ',(field name here).(child field name here or * for all)'. Note: the shape of the returned object may not match the model in this library if this string does not start with '' as shown.
Whether or not to send the customer the "your ticket has been received" email. Defaults to true.
The response body if response status OK, or response body with validation errors if response status 400.
Add a reply from an agent to an existing case.
const client = new OutsetaApiClient({
subdomain: 'test-company',
apiKey: example_key,
secretKey: example_secret
});
const response = await client.support.cases.addReplyFromAgent({
AgentName: 'Firstname Lastname',
Case: {
Uid: 'rmkyza9g'
},
Comment: 'This is a response comment'
});
console.log(response);
The reply from an agent to add to a case.
Null if response status OK.
Add a reply from a customer to an existing case.
const client = new OutsetaApiClient({
subdomain: 'test-company',
apiKey: example_key,
secretKey: example_secret
});
const response = await client.support.cases.addReplyFromClient({
Case: {
Uid: 'rmkyza9g'
},
Comment: 'This is a response comment'
});
console.log(response);
The reply from the customer to add to a case.
The response body if response status OK.
Get all support cases:
const client = new OutsetaApiClient({
subdomain: 'test-company',
apiKey: example_key,
secretKey: example_secret
});
const response = await client.support.cases.getAll();
console.log(response);
Filter cases by person.
Not all fields on the model are returned by default - you can request specific fields with a that looks something like ',(field name here).(child field name here or * for all)'. Note: the shape of the returned object may not match the model in this library if this string does not start with '' as shown.
The number of results returned by the API.
For pagination; returns (limit) results after this value.
The response body if response status OK.
Generated using TypeDoc
Add a new support case.
Response If the server returns a non-"OK" or non-"400" status, the whole response object will be thrown.