Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Invite

This contains APIs related to Invite as defined in Harness

Resend invite

put

Resend the invite email

Path parameters
inviteIdstringRequired

Invite id

Query parameters
accountIdentifierstringRequired

Account Identifier for the Entity.

Body

This is the view of the Invite entity defined in Harness

idstringOptional

Identifier of the Invite.

namestringOptional

Name of the Invite.

emailstring · min: 1 · max: 2147483647Required

Email Id associated with the user to be invited.

accountIdentifierstringOptional

Account Identifier for the Entity.

orgIdentifierstringOptional

Organization Identifier for the Entity.

projectIdentifierstringOptional

Project Identifier for the Entity.

userGroupsstring[]Optional

List of the userGroups in the invite.

inviteTypestring · enumRequired

Specifies the invite type.

Possible values:
approvedbooleanOptional

Specifies whether or not the invite is approved. By default this value is set to false.

Responses
400

Bad Request

This is Failure entity as defied in Harness

statusstring · enumOptionalPossible values:
codestring · enumOptionalPossible values:
messagestringOptional
correlationIdstringOptional
put/invites/{inviteId}
PUT /gateway/ng/api/invites/{inviteId}?accountIdentifier=text HTTP/1.1
Host: ng-manager-7b6bb5bdbc-5jxjn
Content-Type: application/json
Accept: */*
Content-Length: 358

{
  "id": "text",
  "name": "text",
  "email": "text",
  "accountIdentifier": "text",
  "orgIdentifier": "text",
  "projectIdentifier": "text",
  "roleBindings": [
    {
      "roleIdentifier": "text",
      "roleName": "text",
      "roleScopeLevel": "text",
      "resourceGroupIdentifier": "text",
      "resourceGroupName": "text",
      "managedRole": true
    }
  ],
  "userGroups": [
    "text"
  ],
  "inviteType": "USER_INITIATED_INVITE",
  "approved": true
}
{
  "status": "SUCCESS",
  "code": "DEFAULT_ERROR_CODE",
  "message": "text",
  "correlationId": "text",
  "errors": [
    {
      "fieldId": "text",
      "error": "text"
    }
  ]
}

Delete Invite

delete

Delete an Invite by Identifier

Path parameters
inviteIdstringRequired

Invite Id

Query parameters
accountIdentifierstringRequired

Account Identifier for the Entity.

Responses
400

Bad Request

This is Failure entity as defied in Harness

statusstring · enumOptionalPossible values:
codestring · enumOptionalPossible values:
messagestringOptional
correlationIdstringOptional
delete/invites/{inviteId}
DELETE /gateway/ng/api/invites/{inviteId}?accountIdentifier=text HTTP/1.1
Host: ng-manager-7b6bb5bdbc-5jxjn
Accept: */*
{
  "status": "SUCCESS",
  "code": "DEFAULT_ERROR_CODE",
  "message": "text",
  "correlationId": "text",
  "errors": [
    {
      "fieldId": "text",
      "error": "text"
    }
  ]
}

Get Invite

get

Gets an Invite by either Invite Id or JwtToken

Query parameters
accountIdentifierstringRequired

Account Identifier for the Entity.

inviteIdstringOptional

Invitation Id

jwttokenstringOptional

JWT Token

Responses
400

Bad Request

This is Failure entity as defied in Harness

statusstring · enumOptionalPossible values:
codestring · enumOptionalPossible values:
messagestringOptional
correlationIdstringOptional
get/invites/invite
GET /gateway/ng/api/invites/invite?accountIdentifier=text HTTP/1.1
Host: ng-manager-7b6bb5bdbc-5jxjn
Accept: */*
{
  "status": "SUCCESS",
  "code": "DEFAULT_ERROR_CODE",
  "message": "text",
  "correlationId": "text",
  "errors": [
    {
      "fieldId": "text",
      "error": "text"
    }
  ]
}

List Invites

get

List all the Invites for a Project or Organization

Query parameters
accountIdentifierstringRequired

Account Identifier for the Entity.

orgIdentifierstringOptional

Organization Identifier for the Entity.

projectIdentifierstringOptional

Project Identifier for the Entity.

pageIndexinteger · int32Optional

Page Index of the results to fetch.Default Value: 0

Default: 0
pageSizeinteger · int32 · max: 100Optional

Results per page(max 100)Default Value: 50

Default: 50
pageTokenstringOptional

Page Token of the next results to fetch.Default Value: ''

Responses
400

Bad Request

This is Failure entity as defied in Harness

statusstring · enumOptionalPossible values:
codestring · enumOptionalPossible values:
messagestringOptional
correlationIdstringOptional
get/invites
GET /gateway/ng/api/invites?accountIdentifier=text HTTP/1.1
Host: ng-manager-7b6bb5bdbc-5jxjn
Accept: */*
{
  "status": "SUCCESS",
  "code": "DEFAULT_ERROR_CODE",
  "message": "text",
  "correlationId": "text",
  "errors": [
    {
      "fieldId": "text",
      "error": "text"
    }
  ]
}

Get pending users

post

List of all the pending users in a scope

Query parameters
accountIdentifierstringRequired

Account Identifier for the Entity.

orgIdentifierstringOptional

Organization Identifier for the Entity.

projectIdentifierstringOptional

Project Identifier for the Entity.

searchTermstringOptional

Search term

pageIndexinteger · int32Optional

Page Index of the results to fetch.Default Value: 0

Default: 0
pageSizeinteger · int32 · max: 100Optional

Results per page(max 100)Default Value: 50

Default: 50
pageTokenstringOptional

Page Token of the next results to fetch.Default Value: ''

Body
resourceGroupIdentifiersstring[]Optional
roleIdentifiersstring[]Optional
Responses
400

Bad Request

This is Failure entity as defied in Harness

statusstring · enumOptionalPossible values:
codestring · enumOptionalPossible values:
messagestringOptional
correlationIdstringOptional
post/invites/aggregate
POST /gateway/ng/api/invites/aggregate?accountIdentifier=text HTTP/1.1
Host: ng-manager-7b6bb5bdbc-5jxjn
Content-Type: application/json
Accept: */*
Content-Length: 64

{
  "resourceGroupIdentifiers": [
    "text"
  ],
  "roleIdentifiers": [
    "text"
  ]
}
{
  "status": "SUCCESS",
  "code": "DEFAULT_ERROR_CODE",
  "message": "text",
  "correlationId": "text",
  "errors": [
    {
      "fieldId": "text",
      "error": "text"
    }
  ]
}

Last updated

Was this helpful?