Skip to main content

ProjectInvitationAcceptResponse

errCodeintegerrequired
Constant value: 0
errMessagestringrequired
Constant value:
data objectrequired
invitation objectrequired
idstringrequired
projectIdstringrequired
tokenstringrequired

The invitation token issued by the server, the front end uses ${origin}/invite/${token} to splice the complete link.

roleInvitationRolerequired

Possible values: [manager, writer, viewer]

createdBystring
createdByProfile object
userIdstringrequired
displayNamestringrequired
emailstring

Optional email address for the profile summary.

avatarUrlstring

Optional avatar image URL or data URL for the uploader profile.

createdAtstring<date-time>required
expiresAtstring<date-time>required
acceptedBystring
acceptedByProfile object
userIdstringrequired
displayNamestringrequired
emailstring

Optional email address for the profile summary.

avatarUrlstring

Optional avatar image URL or data URL for the uploader profile.

acceptedAtstring<date-time>
revokedAtstring<date-time>
member objectrequired
projectIdstringrequired
userIdstringrequired
profile object
userIdstringrequired
displayNamestringrequired
emailstring

Optional email address for the profile summary.

avatarUrlstring

Optional avatar image URL or data URL for the uploader profile.

roleProjectRolerequired

Possible values: [owner, manager, writer, viewer]

createdBystring
createdByProfile object
userIdstringrequired
displayNamestringrequired
emailstring

Optional email address for the profile summary.

avatarUrlstring

Optional avatar image URL or data URL for the uploader profile.

createdAtstring<date-time>required
ProjectInvitationAcceptResponse
{
"errCode": 0,
"errMessage": "string",
"data": {
"invitation": {
"id": "string",
"projectId": "string",
"token": "string",
"role": "manager",
"createdBy": "string",
"createdByProfile": {
"userId": "string",
"displayName": "string",
"email": "string",
"avatarUrl": "string"
},
"createdAt": "2024-07-29T15:51:28.071Z",
"expiresAt": "2024-07-29T15:51:28.071Z",
"acceptedBy": "string",
"acceptedByProfile": {
"userId": "string",
"displayName": "string",
"email": "string",
"avatarUrl": "string"
},
"acceptedAt": "2024-07-29T15:51:28.071Z",
"revokedAt": "2024-07-29T15:51:28.071Z"
},
"member": {
"projectId": "string",
"userId": "string",
"profile": {
"userId": "string",
"displayName": "string",
"email": "string",
"avatarUrl": "string"
},
"role": "owner",
"createdBy": "string",
"createdByProfile": {
"userId": "string",
"displayName": "string",
"email": "string",
"avatarUrl": "string"
},
"createdAt": "2024-07-29T15:51:28.071Z"
}
}
}