Success
const response = await fetch('/v2/rejection_reasons', { method: 'GET', headers: {}, }); const data = await response.json();
[ { "Id": 0, "Name": "text", "Type": "NoneSpecified", "Actions": [ { "Id": 0, "Type": "SendEmail" } ] } ]
No Content
const response = await fetch('/v2/rejection_reasons/{id}', { method: 'DELETE', headers: {}, }); const data = await response.json();
{ "Message": "text", "Errors": [ { "Field": "text", "Message": "text" } ], "ErrorCode": 0 }
const response = await fetch('/v2/rejection_reasons/{id}', { method: 'GET', headers: {}, }); const data = await response.json();
{ "Id": 0, "Name": "text", "Type": "NoneSpecified", "Actions": [ { "Id": 0, "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();