Indicator Cards
No description given.
Endpoints
get /api/v3/workflow/indicator_cards post /api/v3/workflow/indicator_cards delete /api/v3/workflow/indicator_cards/:resource_id
get/api/v3/workflow/indicator_cards
Return a paginated list of workflow/indicator_cards
Input Schema
object
page?:
object
The page number, default to 1
number?: integer
The number of items per page, default to 1000
size?: integer
The sort order, comma separated list of fields. See sorting section for more details
sort?: string
Set to true to return the total number of items in the collection
count?: boolean
filter?:
object
id?: unknown
project_id?: unknown
indicator_name?: unknown
period_type?: unknown
component_type?: unknown
created_at?: unknown
updated_at?: unknown
project_id?: unknown
The related resources to include in the response. Allowed resources are:
- `project`
included?: - `project`
array
Elements: string
The fields to include in the response.
The key is the resource type and the value is an array of fields.
fields?: The key is the resource type and the value is an array of fields.
dictionary
Values: array
Typescript
type InputSchema = {
page?: {
// The page number, default to 1
number?: number;
// The number of items per page, default to 1000
size?: number;
};
// The sort order, comma separated list of fields. See sorting section for more details
sort?: string;
// Set to true to return the total number of items in the collection
count?: boolean;
filter?: {
id?: any;
project_id?: any;
indicator_name?: any;
period_type?: any;
component_type?: any;
created_at?: any;
updated_at?: any;
project_id?: any;
};
// The related resources to include in the response. Allowed resources are:
// - `project`
included?: Array<string>;
// The fields to include in the response.
// The key is the resource type and the value is an array of fields.
fields?: { [key: string]: Array<any> };
};
Output Schema
object
data:
array
Elements:
object
type: string
id?: string
attributes?:
object
id?: integer
indicator_name?: string
period_type?: string
component_type?: string
created_at?: datetime
updated_at?: datetime
relationships?: open struct
included?:
array
Elements: open struct
Typescript
type OutputSchema = {
data: Array<{
type: string;
id?: string;
attributes?: {
id?: number;
indicator_name?: string;
period_type?: string;
component_type?: string;
created_at?: Date;
updated_at?: Date;
};
relationships?: Record<string, any>;
}>;
included?: Array<Record<string, any>>;
};
post/api/v3/workflow/indicator_cards
Create a new workflow/indicator_cards
Input Schema
object
data:
object
type: string
attributes:
object
id?: integer
indicator_name?: string
period_type?: string
component_type?: string
created_at?: datetime
updated_at?: datetime
relationships?:
object
project:
object
data:
object
type: string
id?: string
Typescript
type InputSchema = {
data: {
type: string;
attributes: {
id?: number;
indicator_name?: string;
period_type?: string;
component_type?: string;
created_at?: Date;
updated_at?: Date;
};
relationships?: { project: { data: { type: string; id?: string } } };
};
};
delete/api/v3/workflow/indicator_cards/:resource_id
Delete the workflow/indicator_cards
Input Schema
object
resource_id: integer
Typescript
type InputSchema = { resource_id: number };