Function: getRequestTypeById()
ts
function getRequestTypeById(
client,
parameters,
options?
): Promise<{
[key: string]: unknown;
_links?: {
[key: string]: unknown;
self?: string;
};
description?: string;
groupIds?: string[];
helpText?: string;
icon?: {
[key: string]: unknown;
_links?: {
[key: string]: unknown;
iconUrls?: Record<string, any>;
};
id?: string;
};
id?: string;
name?: string;
restrictionStatus?: string & object | "OPEN" | "RESTRICTED";
serviceDeskId?: string;
}>;Defined in: src/serviceDeskServer/api/requestTypes.ts:154
Returns a request type for a given request type Id.
Parameters
| Parameter | Type | Description |
|---|---|---|
client | Client | - |
parameters | { requestTypeId: string; restrictionStatus?: string; serviceDeskId: string; } | - |
parameters.requestTypeId | string | The id of the request type. |
parameters.restrictionStatus? | string | Filter request type by restriction status. It can be OPEN, RESTRICTED or both separated by a comma. |
parameters.serviceDeskId? | string | The id of the service desk. |
options? | RequestOptions | - |
Returns
Promise<{ [key: string]: unknown; _links?: { [key: string]: unknown; self?: string; }; description?: string; groupIds?: string[]; helpText?: string; icon?: { [key: string]: unknown; _links?: { [key: string]: unknown; iconUrls?: Record<string, any>; }; id?: string; }; id?: string; name?: string; restrictionStatus?: string & object | "OPEN" | "RESTRICTED"; serviceDeskId?: string; }>