Success
const response = await fetch('/v2/rejection_reasons', { method: 'GET', headers: {}, }); const data = await response.json();
[ { "Name": "text", "Type": "NoneSpecified", "Actions": [ { "Type": "SendEmail" } ] } ]
No Content
const response = await fetch('/v2/rejection_reasons/{id}', { method: 'DELETE', headers: {}, }); const data = await response.json();
const response = await fetch('/v2/rejection_reasons/{id}', { method: 'GET', headers: {}, }); const data = await response.json();
{ "Name": "text", "Type": "NoneSpecified", "Actions": [ { "Type": "SendEmail" } ] }
Created
const response = await fetch('/v2/rejection_reasons', { method: 'POST', headers: { "Content-Type": "application/json-patch+json" }, body: JSON.stringify({ "Name": "text" }), }); const data = await response.json();
const response = await fetch('/v2/rejection_reasons/{id}', { method: 'PUT', headers: { "Content-Type": "application/json-patch+json" }, body: JSON.stringify({ "Name": "text" }), }); const data = await response.json();