Create a goal
POST/performance/{connection_id}/goal
Parameters
fieldsstring array
Fields to return
rawstring
Raw parameters to include in the 3rd-party request. Encoded as a URL component. eg. raw parameters: foo=bar&zoo=bar -> raw=foo%3Dbar%26zoo%3Dbar
connection_idstring required
ID of the connection
Payload
idstring
created_atdate
(ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
updated_atdate
(ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
namestring
descriptionstring
user_idsstring array
HR Employees that own or share this goal; the first element is the primary owner
company_idstring
parent_idstring
id of the parent goal, for goal alignment / OKR trees
cycle_idstring
pointer to the Performance Cycle object (goal cycle or timeframe)
type enum
Valid values:
"INDIVIDUAL"
"TEAM"
"DEPARTMENT"
"COMPANY"
"OTHER"
status enum
Valid values:
"NOT_STARTED"
"IN_PROGRESS"
"COMPLETED"
"CLOSED"
"OTHER"
progressnumber
progress percentage from 0 to 100
weightnumber
the weight of this goal when the provider weighs goals in reviews
start_atdate
(ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
due_atdate
(ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
completed_atdate
(ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
Returns
idstring
created_atdate
(ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
updated_atdate
(ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
namestring
descriptionstring
user_idsstring array
HR Employees that own or share this goal; the first element is the primary owner
company_idstring
parent_idstring
id of the parent goal, for goal alignment / OKR trees
cycle_idstring
pointer to the Performance Cycle object (goal cycle or timeframe)
type enum
Valid values:
"INDIVIDUAL"
"TEAM"
"DEPARTMENT"
"COMPANY"
"OTHER"
status enum
Valid values:
"NOT_STARTED"
"IN_PROGRESS"
"COMPLETED"
"CLOSED"
"OTHER"
progressnumber
progress percentage from 0 to 100
weightnumber
the weight of this goal when the provider weighs goals in reviews
start_atdate
(ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
due_atdate
(ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
completed_atdate
(ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
const options = {
method: 'POST',
url: 'https://api.unified.to/performance/5de520f96e439b002043d8dc/goal',
headers: {
authorization: 'bearer .....'
},
data: undefined,
params: {
fields: '',
raw: '',
}
};
const results = await axios.request(options); Are we missing anything? Let us know