Create a pullrequest
POST/repo/{connection_id}/pullrequest
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)
user_idsstring array
(reference to HrisEmployee)
repo_idstring
(reference to RepoRepository)
status enum
Valid values:
"PENDING"
"APPROVED"
"REJECTED"
labelsstring array
closed_atdate
(ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
commit_idsstring array
(reference to RepoCommit)
Returns
idstring
created_atdate
(ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
updated_atdate
(ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
user_idsstring array
(reference to HrisEmployee)
repo_idstring
(reference to RepoRepository)
status enum
Valid values:
"PENDING"
"APPROVED"
"REJECTED"
labelsstring array
closed_atdate
(ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
commit_idsstring array
(reference to RepoCommit)
const options = {
method: 'POST',
url: 'https://api.unified.to/repo/5de520f96e439b002043d8dc/pullrequest',
headers: {
authorization: 'bearer .....'
},
data: undefined,
params: {
fields: '',
raw: '',
}
};
const results = await axios.request(options); Are we missing anything? Let us know