Note: This page was translated using automation resources with the purpose of providing content in your language more quickly. Consequently, it may have grammatical errors and similar situations. If the content is not useful in this state, in the page footer you can access the original material in Brazilian Portuguese and also give us opinions on this translation.

Fetch Invitation Templates — Colabbe APIs

Returns invitation templates to be sent in pre-admissions.

API definitions:


url

POST<platform_url>/t/senior.com.br/bridge/1.0/rest/hcm/onboardingintegration/queries/inviteModelQuery

replace<platform_url>by the URL corresponding to your environment. If it's the production environment, replace it with:https://platform.senior.com.br

Header

Authorization Bearer​<access_token>
Content-Type application/json

replace&lt;access_token&gt;by the access key obtained from thePlatform Authentication API.

parameters

Parameter Type Description
size integrate

Page size (number of records to be displayed on each page).

When not informed, the default page size is 10 records.

offset integrate

Current page number.

The first page starts at 0 (zero).

When not informed, the default page is 0 (zero).

filter String

Filter to be applied in the search, based on the model name.

This is a default senior X Platform filter. For details on how to use it, see thefilter documentation on the Senior API Portal.

Example

{ "size": "10", "offset": "0", "filter": "string" }

Answers

Code Description response fields
200 OK
Field Type Description
inviteModelData { } List of invitation template records returned by the request.
  modelId String Invitation template identifier.
  name String Description of the invitation template.
  country String Country related to invitation template.
  deadline integrate Deadline set for invitation.
401 Invalid credentials   -
default error response
Field Type Description
message String Descriptive error message.
reason String A code that represents the category of the cause of the error.

Observation

By default, the endpointinviteModelQuery applies the filter below, causing it to return only the models that areactive:

enabled eq ACTIVE and containing(lower(name), lower(''))

Este artigo ajudou você?