> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.itspropel.com/llms.txt.
> For full documentation content, see https://docs.itspropel.com/llms-full.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.itspropel.com/_mcp/server.

# Accept

POST https://users/invites/accept/%7Binvite_id%7D
Content-Type: multipart/form-data

Reference: https://docs.itspropel.com/propel-biz/user-invites/accept

## OpenAPI Specification

```yaml
openapi: 3.1.0
info:
  title: PropelBiz
  version: 1.0.0
paths:
  /users/invites/accept/%7Binvite_id%7D:
    post:
      operationId: accept
      summary: Accept
      tags:
        - subpackage_userInvites
      parameters:
        - name: '{{tenant_key_name}}'
          in: header
          required: false
          schema:
            type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/User Invites_Accept_Response_200'
        '422':
          description: Unprocessable Content
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/PostUsersInvitesAccept%7binvite_id%7dRequestUnprocessableEntityError
      requestBody:
        content:
          multipart/form-data:
            schema:
              type: object
              properties:
                token:
                  type: string
                password:
                  type: string
                  description: 'Required: Password'
                last_name:
                  type: string
                  description: 'Optional: Last Name'
                first_name:
                  type: string
                  description: 'Optional: First Name'
              required:
                - token
                - password
                - last_name
                - first_name
servers:
  - url: https:/
components:
  schemas:
    UsersInvitesAccept7BinviteId7DPostResponsesContentApplicationJsonSchemaDataItemsAttributes:
      type: object
      properties:
        email:
          type: string
          format: email
        last_name:
          type: string
        first_name:
          type: string
      required:
        - email
        - last_name
        - first_name
      title: >-
        UsersInvitesAccept7BinviteId7DPostResponsesContentApplicationJsonSchemaDataItemsAttributes
    UsersInvitesAccept7BinviteId7DPostResponsesContentApplicationJsonSchemaDataItems:
      type: object
      properties:
        id:
          type: string
          format: uuid
        type:
          type: string
        attributes:
          $ref: >-
            #/components/schemas/UsersInvitesAccept7BinviteId7DPostResponsesContentApplicationJsonSchemaDataItemsAttributes
      required:
        - id
        - type
        - attributes
      title: >-
        UsersInvitesAccept7BinviteId7DPostResponsesContentApplicationJsonSchemaDataItems
    User Invites_Accept_Response_200:
      type: object
      properties:
        data:
          type: array
          items:
            $ref: >-
              #/components/schemas/UsersInvitesAccept7BinviteId7DPostResponsesContentApplicationJsonSchemaDataItems
      required:
        - data
      title: User Invites_Accept_Response_200
    UsersInvitesAccept7BinviteId7DPostResponsesContentApplicationJsonSchemaErrorsItemsSource:
      type: object
      properties:
        pointer:
          type: string
      required:
        - pointer
      title: >-
        UsersInvitesAccept7BinviteId7DPostResponsesContentApplicationJsonSchemaErrorsItemsSource
    UsersInvitesAccept7BinviteId7DPostResponsesContentApplicationJsonSchemaErrorsItems:
      type: object
      properties:
        title:
          type: string
        detail:
          type: string
        source:
          $ref: >-
            #/components/schemas/UsersInvitesAccept7BinviteId7DPostResponsesContentApplicationJsonSchemaErrorsItemsSource
        status:
          type: string
      required:
        - title
        - detail
        - source
        - status
      title: >-
        UsersInvitesAccept7BinviteId7DPostResponsesContentApplicationJsonSchemaErrorsItems
    PostUsersInvitesAccept%7binvite_id%7dRequestUnprocessableEntityError:
      type: object
      properties:
        errors:
          type: array
          items:
            $ref: >-
              #/components/schemas/UsersInvitesAccept7BinviteId7DPostResponsesContentApplicationJsonSchemaErrorsItems
      required:
        - errors
      title: PostUsersInvitesAccept%7binvite_id%7dRequestUnprocessableEntityError

```

## SDK Code Examples

```python User Invites_Accept_example
import requests

url = "https://https/users/invites/accept/%7Binvite_id%7D"

payload = "-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"token\"\r\n\r\na1b2c3d4e5f6g7h8\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"password\"\r\n\r\nSecurePass!2024\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"last_name\"\r\n\r\nJohnson\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"first_name\"\r\n\r\nEmily\r\n-----011000010111000001101001--\r\n"
headers = {
    "{{tenant_key_name}}": "{{tenant_key_value1}}|{{tenant_key_value2}}",
    "Content-Type": "multipart/form-data; boundary=---011000010111000001101001"
}

response = requests.post(url, data=payload, headers=headers)

print(response.json())
```

```javascript User Invites_Accept_example
const url = 'https://https/users/invites/accept/%7Binvite_id%7D';
const form = new FormData();
form.append('token', 'a1b2c3d4e5f6g7h8');
form.append('password', 'SecurePass!2024');
form.append('last_name', 'Johnson');
form.append('first_name', 'Emily');

const options = {
  method: 'POST',
  headers: {'{{tenant_key_name}}': '{{tenant_key_value1}}|{{tenant_key_value2}}'}
};

options.body = form;

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go User Invites_Accept_example
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "https://https/users/invites/accept/%7Binvite_id%7D"

	payload := strings.NewReader("-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"token\"\r\n\r\na1b2c3d4e5f6g7h8\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"password\"\r\n\r\nSecurePass!2024\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"last_name\"\r\n\r\nJohnson\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"first_name\"\r\n\r\nEmily\r\n-----011000010111000001101001--\r\n")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("{{tenant_key_name}}", "{{tenant_key_value1}}|{{tenant_key_value2}}")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby User Invites_Accept_example
require 'uri'
require 'net/http'

url = URI("https://https/users/invites/accept/%7Binvite_id%7D")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["{{tenant_key_name}}"] = '{{tenant_key_value1}}|{{tenant_key_value2}}'
request.body = "-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"token\"\r\n\r\na1b2c3d4e5f6g7h8\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"password\"\r\n\r\nSecurePass!2024\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"last_name\"\r\n\r\nJohnson\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"first_name\"\r\n\r\nEmily\r\n-----011000010111000001101001--\r\n"

response = http.request(request)
puts response.read_body
```

```java User Invites_Accept_example
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.post("https://https/users/invites/accept/%7Binvite_id%7D")
  .header("{{tenant_key_name}}", "{{tenant_key_value1}}|{{tenant_key_value2}}")
  .body("-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"token\"\r\n\r\na1b2c3d4e5f6g7h8\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"password\"\r\n\r\nSecurePass!2024\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"last_name\"\r\n\r\nJohnson\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"first_name\"\r\n\r\nEmily\r\n-----011000010111000001101001--\r\n")
  .asString();
```

```php User Invites_Accept_example
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://https/users/invites/accept/%7Binvite_id%7D', [
  'multipart' => [
    [
        'name' => 'token',
        'contents' => 'a1b2c3d4e5f6g7h8'
    ],
    [
        'name' => 'password',
        'contents' => 'SecurePass!2024'
    ],
    [
        'name' => 'last_name',
        'contents' => 'Johnson'
    ],
    [
        'name' => 'first_name',
        'contents' => 'Emily'
    ]
  ]
  'headers' => [
    '{{tenant_key_name}}' => '{{tenant_key_value1}}|{{tenant_key_value2}}',
  ],
]);

echo $response->getBody();
```

```csharp User Invites_Accept_example
using RestSharp;

var client = new RestClient("https://https/users/invites/accept/%7Binvite_id%7D");
var request = new RestRequest(Method.POST);
request.AddHeader("{{tenant_key_name}}", "{{tenant_key_value1}}|{{tenant_key_value2}}");
request.AddParameter("undefined", "-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"token\"\r\n\r\na1b2c3d4e5f6g7h8\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"password\"\r\n\r\nSecurePass!2024\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"last_name\"\r\n\r\nJohnson\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"first_name\"\r\n\r\nEmily\r\n-----011000010111000001101001--\r\n", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift User Invites_Accept_example
import Foundation

let headers = ["{{tenant_key_name}}": "{{tenant_key_value1}}|{{tenant_key_value2}}"]
let parameters = [
  [
    "name": "token",
    "value": "a1b2c3d4e5f6g7h8"
  ],
  [
    "name": "password",
    "value": "SecurePass!2024"
  ],
  [
    "name": "last_name",
    "value": "Johnson"
  ],
  [
    "name": "first_name",
    "value": "Emily"
  ]
]

let boundary = "---011000010111000001101001"

var body = ""
var error: NSError? = nil
for param in parameters {
  let paramName = param["name"]!
  body += "--\(boundary)\r\n"
  body += "Content-Disposition:form-data; name=\"\(paramName)\""
  if let filename = param["fileName"] {
    let contentType = param["content-type"]!
    let fileContent = String(contentsOfFile: filename, encoding: String.Encoding.utf8)
    if (error != nil) {
      print(error as Any)
    }
    body += "; filename=\"\(filename)\"\r\n"
    body += "Content-Type: \(contentType)\r\n\r\n"
    body += fileContent
  } else if let paramValue = param["value"] {
    body += "\r\n\r\n\(paramValue)"
  }
}

let request = NSMutableURLRequest(url: NSURL(string: "https://https/users/invites/accept/%7Binvite_id%7D")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```