EmploymentRelations

Operations for EmploymentRelations

List employmentRelations

get

List employmentRelations

Filter Syntax:

  • Filters use exact match only

  • Multiple filters are combined with AND logic

  • Filterable fields: toEmployeeID, fromEmployeeID, relationTypeID

  • Example: ?toEmployeeID=123e4567-e89b-12d3-a456-426614174000&fromEmployeeID=123e4567-e89b-12d3-a456-426614174000

Authorizations
Path parameters
orgkeepIDstringRequired

Organization identifier

Query parameters
toEmployeeIDstringOptional

Filter by toEmployeeID (exact match)

fromEmployeeIDstringOptional

Filter by fromEmployeeID (exact match)

relationTypeIDstringOptional

Filter by relationTypeID (exact match)

limitinteger · min: 1 · max: 1000Optional

Maximum number of items to return (1-1000)

Default: 10
cursorstringOptional

Cursor for pagination. Use the value from the 'nextCursor' field of the previous response.

Responses
200
Successful response
application/json
get
GET /api/orgkeep/v4/{orgkeepID}/employmentRelations HTTP/1.1
Host: matrix.ag5.com
X-API-Key: YOUR_API_KEY
Accept: */*
{
  "data": [
    {
      "activePeriod": "[2023-01-01,2023-12-31)",
      "createdAt": "2025-07-18T19:54:25.322Z",
      "fromEmployeeID": "123e4567-e89b-12d3-a456-426614174000",
      "id": "123e4567-e89b-12d3-a456-426614174000",
      "lastModifiedAt": "2025-07-18T19:54:25.322Z",
      "relationTypeID": "123e4567-e89b-12d3-a456-426614174000",
      "repositoryID": "123e4567-e89b-12d3-a456-426614174000",
      "toEmployeeID": "123e4567-e89b-12d3-a456-426614174000"
    }
  ],
  "pagination": {
    "hasMore": true,
    "limit": 1,
    "nextCursor": "text",
    "total": 1
  }
}

Get EmploymentRelation

get

Get a single employmentRelation by ID

Authorizations
Path parameters
orgkeepIDstringRequired

Organization identifier

idstringRequired

EmploymentRelation ID

Responses
200
Successful response
application/json
get
GET /api/orgkeep/v4/{orgkeepID}/employmentRelations/{id} HTTP/1.1
Host: matrix.ag5.com
X-API-Key: YOUR_API_KEY
Accept: */*
{
  "activePeriod": "[2023-01-01,2023-12-31)",
  "createdAt": "2025-07-18T19:54:25.322Z",
  "fromEmployeeID": "123e4567-e89b-12d3-a456-426614174000",
  "id": "123e4567-e89b-12d3-a456-426614174000",
  "lastModifiedAt": "2025-07-18T19:54:25.322Z",
  "relationTypeID": "123e4567-e89b-12d3-a456-426614174000",
  "repositoryID": "123e4567-e89b-12d3-a456-426614174000",
  "toEmployeeID": "123e4567-e89b-12d3-a456-426614174000"
}

List EmploymentRelation creation proposals

get

List all createEmploymentRelations proposals. These are proposed changes to create new EmploymentRelation records that may be automatically approved or require manual approval depending on system configuration.

Filter Syntax:

  • Filters use exact match only

  • Multiple filters are combined with AND logic

  • Filterable fields: toEmployeeID, fromEmployeeID, relationTypeID

  • Example: ?toEmployeeID=123e4567-e89b-12d3-a456-426614174000&fromEmployeeID=123e4567-e89b-12d3-a456-426614174000

Authorizations
Path parameters
orgkeepIDstringRequired

Organization identifier

Query parameters
toEmployeeIDstringOptional

Filter by toEmployeeID (exact match)

fromEmployeeIDstringOptional

Filter by fromEmployeeID (exact match)

relationTypeIDstringOptional

Filter by relationTypeID (exact match)

limitinteger · min: 1 · max: 1000Optional

Maximum number of items to return (1-1000)

Default: 10
cursorstringOptional

Cursor for pagination. Use the value from the 'nextCursor' field of the previous response.

Responses
200
Successful response
application/json
get
GET /api/orgkeep/v4/{orgkeepID}/createEmploymentRelations HTTP/1.1
Host: matrix.ag5.com
X-API-Key: YOUR_API_KEY
Accept: */*
{
  "data": [
    {
      "activePeriod": "[2023-01-01,2023-12-31)",
      "fromEmployeeID": "123e4567-e89b-12d3-a456-426614174000",
      "isProposalExecutionFailed": true,
      "isProposalResolved": true,
      "proposalExecutionErrorText": "text",
      "relationTypeID": "123e4567-e89b-12d3-a456-426614174000",
      "repositoryID": "123e4567-e89b-12d3-a456-426614174000",
      "requestID": "123e4567-e89b-12d3-a456-426614174000",
      "subjectID": "123e4567-e89b-12d3-a456-426614174000",
      "toEmployeeID": "123e4567-e89b-12d3-a456-426614174000"
    }
  ],
  "pagination": {
    "hasMore": true,
    "limit": 1,
    "nextCursor": "text",
    "total": 1
  }
}

Propose creation of EmploymentRelation

post

Create a new proposal to add a EmploymentRelation record. The proposal may be automatically approved or require manual approval depending on system configuration.

Authorizations
Path parameters
orgkeepIDstringRequired

Organization identifier

Body
activePeriodstringRequired

Date range in PostgreSQL format [start,end)

Example: [2023-01-01,2023-12-31)
fromEmployeeIDstring · uuidRequired
relationTypeIDstring · uuidRequired
repositoryIDstring · uuidRequired
toEmployeeIDstring · uuidRequired
Responses
201
Created successfully
application/json
post
POST /api/orgkeep/v4/{orgkeepID}/createEmploymentRelations HTTP/1.1
Host: matrix.ag5.com
X-API-Key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 262

{
  "activePeriod": "[2023-01-01,2023-12-31)",
  "fromEmployeeID": "123e4567-e89b-12d3-a456-426614174000",
  "relationTypeID": "123e4567-e89b-12d3-a456-426614174000",
  "repositoryID": "123e4567-e89b-12d3-a456-426614174000",
  "toEmployeeID": "123e4567-e89b-12d3-a456-426614174000"
}
{
  "activePeriod": "[2023-01-01,2023-12-31)",
  "fromEmployeeID": "123e4567-e89b-12d3-a456-426614174000",
  "isProposalExecutionFailed": true,
  "isProposalResolved": true,
  "proposalExecutionErrorText": "text",
  "relationTypeID": "123e4567-e89b-12d3-a456-426614174000",
  "repositoryID": "123e4567-e89b-12d3-a456-426614174000",
  "requestID": "123e4567-e89b-12d3-a456-426614174000",
  "subjectID": "123e4567-e89b-12d3-a456-426614174000",
  "toEmployeeID": "123e4567-e89b-12d3-a456-426614174000"
}

Get EmploymentRelation creation proposal

get

Get details of a specific EmploymentRelation creation proposal by ID

Authorizations
Path parameters
orgkeepIDstringRequired

Organization identifier

idstringRequired

CreateEmploymentRelation ID

Responses
200
Successful response
application/json
get
GET /api/orgkeep/v4/{orgkeepID}/createEmploymentRelations/{id} HTTP/1.1
Host: matrix.ag5.com
X-API-Key: YOUR_API_KEY
Accept: */*
{
  "activePeriod": "[2023-01-01,2023-12-31)",
  "fromEmployeeID": "123e4567-e89b-12d3-a456-426614174000",
  "isProposalExecutionFailed": true,
  "isProposalResolved": true,
  "proposalExecutionErrorText": "text",
  "relationTypeID": "123e4567-e89b-12d3-a456-426614174000",
  "repositoryID": "123e4567-e89b-12d3-a456-426614174000",
  "requestID": "123e4567-e89b-12d3-a456-426614174000",
  "subjectID": "123e4567-e89b-12d3-a456-426614174000",
  "toEmployeeID": "123e4567-e89b-12d3-a456-426614174000"
}

List EmploymentRelation deletion proposals

get

List all deleteEmploymentRelations proposals. These are proposed changes to delete EmploymentRelation records that may be automatically approved or require manual approval depending on system configuration.

Authorizations
Path parameters
orgkeepIDstringRequired

Organization identifier

Query parameters
limitinteger · min: 1 · max: 1000Optional

Maximum number of items to return (1-1000)

Default: 10
cursorstringOptional

Cursor for pagination. Use the value from the 'nextCursor' field of the previous response.

Responses
200
Successful response
application/json
get
GET /api/orgkeep/v4/{orgkeepID}/deleteEmploymentRelations HTTP/1.1
Host: matrix.ag5.com
X-API-Key: YOUR_API_KEY
Accept: */*
{
  "data": [
    {
      "id": "123e4567-e89b-12d3-a456-426614174000",
      "isProposalExecutionFailed": true,
      "isProposalResolved": true,
      "proposalExecutionErrorText": "text",
      "repositoryID": "123e4567-e89b-12d3-a456-426614174000",
      "requestID": "123e4567-e89b-12d3-a456-426614174000"
    }
  ],
  "pagination": {
    "hasMore": true,
    "limit": 1,
    "nextCursor": "text",
    "total": 1
  }
}

Propose creation of EmploymentRelation

post

Create a new proposal to add a EmploymentRelation record. The proposal may be automatically approved or require manual approval depending on system configuration.

Authorizations
Path parameters
orgkeepIDstringRequired

Organization identifier

Body
idstring · uuidRequired
repositoryIDstring · uuidRequired
Responses
201
Created successfully
application/json
post
POST /api/orgkeep/v4/{orgkeepID}/deleteEmploymentRelations HTTP/1.1
Host: matrix.ag5.com
X-API-Key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 99

{
  "id": "123e4567-e89b-12d3-a456-426614174000",
  "repositoryID": "123e4567-e89b-12d3-a456-426614174000"
}
{
  "id": "123e4567-e89b-12d3-a456-426614174000",
  "isProposalExecutionFailed": true,
  "isProposalResolved": true,
  "proposalExecutionErrorText": "text",
  "repositoryID": "123e4567-e89b-12d3-a456-426614174000",
  "requestID": "123e4567-e89b-12d3-a456-426614174000"
}

Get EmploymentRelation deletion proposal

get

Get details of a specific EmploymentRelation deletion proposal by ID

Authorizations
Path parameters
orgkeepIDstringRequired

Organization identifier

idstringRequired

DeleteEmploymentRelation ID

Responses
200
Successful response
application/json
get
GET /api/orgkeep/v4/{orgkeepID}/deleteEmploymentRelations/{id} HTTP/1.1
Host: matrix.ag5.com
X-API-Key: YOUR_API_KEY
Accept: */*
{
  "id": "123e4567-e89b-12d3-a456-426614174000",
  "isProposalExecutionFailed": true,
  "isProposalResolved": true,
  "proposalExecutionErrorText": "text",
  "repositoryID": "123e4567-e89b-12d3-a456-426614174000",
  "requestID": "123e4567-e89b-12d3-a456-426614174000"
}

List EmploymentRelation update proposals

get

List all updateEmploymentRelations proposals. These are proposed changes to update existing EmploymentRelation records that may be automatically approved or require manual approval depending on system configuration.

Filter Syntax:

  • Filters use exact match only

  • Multiple filters are combined with AND logic

  • Filterable fields: toEmployeeID, fromEmployeeID, relationTypeID

  • Example: ?toEmployeeID=123e4567-e89b-12d3-a456-426614174000&fromEmployeeID=123e4567-e89b-12d3-a456-426614174000

Authorizations
Path parameters
orgkeepIDstringRequired

Organization identifier

Query parameters
toEmployeeIDstringOptional

Filter by toEmployeeID (exact match)

fromEmployeeIDstringOptional

Filter by fromEmployeeID (exact match)

relationTypeIDstringOptional

Filter by relationTypeID (exact match)

limitinteger · min: 1 · max: 1000Optional

Maximum number of items to return (1-1000)

Default: 10
cursorstringOptional

Cursor for pagination. Use the value from the 'nextCursor' field of the previous response.

Responses
200
Successful response
application/json
get
GET /api/orgkeep/v4/{orgkeepID}/updateEmploymentRelations HTTP/1.1
Host: matrix.ag5.com
X-API-Key: YOUR_API_KEY
Accept: */*
{
  "data": [
    {
      "activePeriod": "[2023-01-01,2023-12-31)",
      "fromEmployeeID": "123e4567-e89b-12d3-a456-426614174000",
      "id": "123e4567-e89b-12d3-a456-426614174000",
      "isProposalExecutionFailed": true,
      "isProposalResolved": true,
      "proposalExecutionErrorText": "text",
      "relationTypeID": "123e4567-e89b-12d3-a456-426614174000",
      "repositoryID": "123e4567-e89b-12d3-a456-426614174000",
      "requestID": "123e4567-e89b-12d3-a456-426614174000",
      "toEmployeeID": "123e4567-e89b-12d3-a456-426614174000"
    }
  ],
  "pagination": {
    "hasMore": true,
    "limit": 1,
    "nextCursor": "text",
    "total": 1
  }
}

Propose creation of EmploymentRelation

post

Create a new proposal to add a EmploymentRelation record. The proposal may be automatically approved or require manual approval depending on system configuration.

Authorizations
Path parameters
orgkeepIDstringRequired

Organization identifier

Body
activePeriodstringRequired

Date range in PostgreSQL format [start,end)

Example: [2023-01-01,2023-12-31)
fromEmployeeIDstring · uuidRequired
idstring · uuidRequired
relationTypeIDstring · uuidRequired
repositoryIDstring · uuidRequired
toEmployeeIDstring · uuidRequired
Responses
201
Created successfully
application/json
post
POST /api/orgkeep/v4/{orgkeepID}/updateEmploymentRelations HTTP/1.1
Host: matrix.ag5.com
X-API-Key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 306

{
  "activePeriod": "[2023-01-01,2023-12-31)",
  "fromEmployeeID": "123e4567-e89b-12d3-a456-426614174000",
  "id": "123e4567-e89b-12d3-a456-426614174000",
  "relationTypeID": "123e4567-e89b-12d3-a456-426614174000",
  "repositoryID": "123e4567-e89b-12d3-a456-426614174000",
  "toEmployeeID": "123e4567-e89b-12d3-a456-426614174000"
}
{
  "activePeriod": "[2023-01-01,2023-12-31)",
  "fromEmployeeID": "123e4567-e89b-12d3-a456-426614174000",
  "id": "123e4567-e89b-12d3-a456-426614174000",
  "isProposalExecutionFailed": true,
  "isProposalResolved": true,
  "proposalExecutionErrorText": "text",
  "relationTypeID": "123e4567-e89b-12d3-a456-426614174000",
  "repositoryID": "123e4567-e89b-12d3-a456-426614174000",
  "requestID": "123e4567-e89b-12d3-a456-426614174000",
  "toEmployeeID": "123e4567-e89b-12d3-a456-426614174000"
}

Get EmploymentRelation update proposal

get

Get details of a specific EmploymentRelation update proposal by ID

Authorizations
Path parameters
orgkeepIDstringRequired

Organization identifier

idstringRequired

UpdateEmploymentRelation ID

Responses
200
Successful response
application/json
get
GET /api/orgkeep/v4/{orgkeepID}/updateEmploymentRelations/{id} HTTP/1.1
Host: matrix.ag5.com
X-API-Key: YOUR_API_KEY
Accept: */*
{
  "activePeriod": "[2023-01-01,2023-12-31)",
  "fromEmployeeID": "123e4567-e89b-12d3-a456-426614174000",
  "id": "123e4567-e89b-12d3-a456-426614174000",
  "isProposalExecutionFailed": true,
  "isProposalResolved": true,
  "proposalExecutionErrorText": "text",
  "relationTypeID": "123e4567-e89b-12d3-a456-426614174000",
  "repositoryID": "123e4567-e89b-12d3-a456-426614174000",
  "requestID": "123e4567-e89b-12d3-a456-426614174000",
  "toEmployeeID": "123e4567-e89b-12d3-a456-426614174000"
}

Was this helpful?