> ## Documentation Index
> Fetch the complete documentation index at: https://docs.mightynetworks.com/llms.txt
> Use this file to discover all available pages before exploring further.

# updateSpaceProfileQuestions

> Replace the profile questions on a Space's join flow. Questions with an ID are
updated, questions without one are created, and existing questions omitted
from the list are removed. Host of the Space only.

**Required scope:** `host:write:network_spaces`



**mutation** `updateSpaceProfileQuestions(input: UpdateSpaceProfileQuestionsInput!): UpdateSpaceProfileQuestionsPayload`

## Arguments

**`input`**: `UpdateSpaceProfileQuestionsInput!` (required)

Parameters for UpdateSpaceProfileQuestions

## Returns

`UpdateSpaceProfileQuestionsPayload`

**`clientMutationId`**: `String`

A unique identifier for the client performing the mutation.

---

**`errors`**: `[String!]!`

---

**`profileQuestions`**: `[ProfileQuestion!]`

The Space's questions after the update.

## Examples

```graphql Mutation
mutation UpdateSpaceProfileQuestions($input: UpdateSpaceProfileQuestionsInput!) {
  updateSpaceProfileQuestions(input: $input) {
    clientMutationId
    errors
    profileQuestions {
      context
      id
      position
      required
      resourceId
      text
    }
  }
}
```

```json Variables
{
  "input": {
    "questions": [
      {
        "context": "DEFAULT",
        "text": "string"
      }
    ],
    "spaceId": "id"
  }
}
```

```json Response
{
  "data": {
    "updateSpaceProfileQuestions": {
      "clientMutationId": "string",
      "errors": [
        "string"
      ],
      "profileQuestions": [
        {
          "context": "DEFAULT",
          "id": "id",
          "position": 1,
          "required": true,
          "resourceId": "id",
          "text": "string"
        }
      ]
    }
  }
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.