# Accept User Invitation

Accepts the user invitation to the account.

## POST /public/v1/accounts/account-users/{id}/accept-invite

>

OpenAPI:

```json
{"openapi":"3.0.1","info":{"title":"Marketplace API","version":"5.0.764-gbc924a47"},"servers":[{"url":"https://api.s1.today"}],"paths":{"/public/v1/accounts/account-users/{id}/accept-invite":{"post":{"tags":["AccountUsersLegacy"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"audit":{"type":"object","allOf":[{"type":"object","properties":{"created":{"type":"object","allOf":[{"type":"object","properties":{"at":{"type":"string","format":"date-time","nullable":true},"by":{"allOf":[{"type":"object","properties":{"id":{"type":"string"},"audit":{"allOf":[{"type":"object","properties":{"created":{"allOf":[{"type":"object","properties":{"$ref":"#/paths/~1public~1v1~1accounts~1account-users~1{id}~1accept-invite/post/responses/200/content/application~1json/schema/properties/audit/allOf/0/properties/created/allOf/0/properties"},"additionalProperties":false}],"nullable":true},"updated":{"allOf":[{"type":"object","properties":{"$ref":"#/paths/~1public~1v1~1accounts~1account-users~1{id}~1accept-invite/post/responses/200/content/application~1json/schema/properties/audit/allOf/0/properties/created/allOf/0/properties"},"additionalProperties":false}],"nullable":true}},"additionalProperties":false}]},"$meta":{"allOf":[{"type":"object","properties":{"omitted":{"type":"array","items":{"type":"string"}}},"additionalProperties":false}],"nullable":true},"name":{"type":"string"},"icon":{"type":"string","nullable":true}},"additionalProperties":false}],"nullable":true}},"additionalProperties":false}]},"updated":{"type":"object","allOf":[{"type":"object","properties":{"$ref":"#/paths/~1public~1v1~1accounts~1account-users~1{id}~1accept-invite/post/responses/200/content/application~1json/schema/properties/audit/allOf/0/properties/created/allOf/0/properties"},"additionalProperties":false}]},"invitationAcceptedAt":{"type":"string","format":"date-time","nullable":true},"access":{"type":"object","allOf":[{"type":"object","properties":{"at":{"type":"string","format":"date-time","nullable":true}},"additionalProperties":false}]},"joined":{"type":"object","allOf":[{"type":"object","properties":{"$ref":"#/paths/~1public~1v1~1accounts~1account-users~1{id}~1accept-invite/post/responses/200/content/application~1json/schema/properties/audit/allOf/0/properties/access/allOf/0/properties"},"additionalProperties":false}]}},"additionalProperties":false}]},"$meta":{"type":"object","allOf":[{"type":"object","properties":{"$ref":"#/paths/~1public~1v1~1accounts~1account-users~1{id}~1accept-invite/post/responses/200/content/application~1json/schema/properties/audit/allOf/0/properties/created/allOf/0/properties/by/allOf/0/properties/$meta/allOf/0/properties"},"additionalProperties":false}]},"user":{"type":"object","allOf":[{"type":"object","properties":{"id":{"type":"string"},"icon":{"type":"string","nullable":true},"name":{"type":"string"}},"additionalProperties":false}]},"groups":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"description":{"type":"string","nullable":true},"logo":{"type":"string","nullable":true},"isDefault":{"type":"boolean"}},"additionalProperties":false}},"buyers":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"icon":{"type":"string","nullable":true},"name":{"type":"string","nullable":true}},"additionalProperties":false},"nullable":true},"modules":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"description":{"type":"string"},"name":{"type":"string"},"filters":{"allOf":[{"type":"object","properties":{"group.buyers":{"type":"array","items":{"type":"string"}}},"additionalProperties":false}],"nullable":true},"settings":{"allOf":[{"type":"object","properties":{"sharedAccount":{"type":"boolean","deprecated":true},"configurable":{"type":"boolean"},"default":{"type":"boolean"},"paid":{"type":"boolean"},"type":{"type":"array","items":{"type":"string"}},"obsolete":{"type":"boolean"},"eligibility":{"allOf":[{"type":"object","properties":{"multi":{"type":"boolean"},"single":{"type":"boolean"}},"additionalProperties":false}],"nullable":true}},"additionalProperties":false}],"nullable":true}},"additionalProperties":false}},"account":{"type":"object","allOf":[{"type":"object","properties":{"id":{"type":"string"},"icon":{"type":"string","nullable":true},"type":{"allOf":[{"enum":["Client","Vendor","Operations"],"type":"string"}],"nullable":true},"status":{"allOf":[{"enum":["Active","Enabled","Disabled"],"type":"string"}],"nullable":true},"name":{"type":"string","nullable":true}},"additionalProperties":false}]},"invitation":{"type":"object","allOf":[{"type":"object","properties":{"url":{"type":"string","nullable":true},"notes":{"type":"string","nullable":true},"status":{"type":"string"}},"additionalProperties":false}]},"lastLoginAt":{"type":"string","format":"date-time","nullable":true}},"additionalProperties":false}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"type":"object","properties":{"type":{"type":"string","nullable":true},"title":{"type":"string","nullable":true},"status":{"type":"integer","format":"int32","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}},"additionalProperties":{}}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"type":"object","properties":{"$ref":"#/paths/~1public~1v1~1accounts~1account-users~1{id}~1accept-invite/post/responses/400/content/application~1json/schema/properties"},"additionalProperties":{"$ref":"#/paths/~1public~1v1~1accounts~1account-users~1{id}~1accept-invite/post/responses/400/content/application~1json/schema/additionalProperties"}}}}}},"deprecated":true}}}}
```
