---
updatedAt: 2026-05-27T00:16:27.000Z
agentTools:
  projectIndex: https://360learning.readme.io/llms.txt
---

# Replace custom user links

> 🔑
>
> Required OAuth scope: `users:write`.

Replaces the custom user link with the provided data.

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "paths": {
    "/api/v2/users/{userId}/custom-links/{customUserLinkId}": {
      "put": {
        "description": "> 🔑\n>\n> Required OAuth scope: `users:write`.\n\nReplaces the custom user link with the provided data.",
        "operationId": "v2.users.UpdateCustomUserLinkController_updateCustomUserLink",
        "parameters": [
          {
            "name": "360-api-version",
            "in": "header",
            "description": "The version of the API.",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "v2.0"
              ]
            }
          },
          {
            "name": "userId",
            "required": true,
            "in": "path",
            "description": "The unique ID of the user.",
            "schema": {
              "format": "ObjectId",
              "pattern": "^[a-fA-F0-9]{24}$",
              "example": "507f1f77bcf86cd799439011",
              "type": "string"
            }
          },
          {
            "name": "customUserLinkId",
            "required": true,
            "in": "path",
            "description": "The unique ID of the custom user link to be updated.",
            "schema": {
              "format": "ObjectId",
              "pattern": "^[a-fA-F0-9]{24}$",
              "example": "507f1f77bcf86cd799439011",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateCustomUserLinkRequestBody"
              }
            }
          }
        },
        "responses": {
          "401": {
            "description": "The given access token is either missing, invalid, has expired, or has been revoked.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string",
                      "enum": [
                        "invalid_token"
                      ]
                    }
                  },
                  "required": [
                    "error"
                  ]
                }
              }
            }
          },
          "403": {
            "description": "The given access token does not have the required OAuth scope to execute the request.",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Invalid Scope",
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string",
                          "enum": [
                            "invalid_scope"
                          ]
                        },
                        "message": {
                          "type": "string",
                          "example": "A human-readable message to help with debugging."
                        }
                      },
                      "required": [
                        "code",
                        "message"
                      ]
                    }
                  },
                  "required": [
                    "error"
                  ]
                }
              }
            }
          },
          "404": {
            "description": "The server cannot find the requested resource.",
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "description": "The given `userId` does not correspond to any existing user.",
                      "title": "User Not Found",
                      "type": "object",
                      "properties": {
                        "error": {
                          "type": "object",
                          "properties": {
                            "code": {
                              "type": "string",
                              "enum": [
                                "userNotFound"
                              ]
                            },
                            "message": {
                              "type": "string",
                              "example": "A human-readable message to help with debugging."
                            }
                          },
                          "required": [
                            "code",
                            "message"
                          ]
                        }
                      },
                      "required": [
                        "error"
                      ]
                    },
                    {
                      "description": "The given `customUserLinkId` does not match any existing custom user link for this user.",
                      "title": "Custom User Link Not Found",
                      "type": "object",
                      "properties": {
                        "error": {
                          "type": "object",
                          "properties": {
                            "code": {
                              "type": "string",
                              "enum": [
                                "customUserLinkNotFound"
                              ]
                            },
                            "message": {
                              "type": "string",
                              "example": "A human-readable message to help with debugging."
                            }
                          },
                          "required": [
                            "code",
                            "message"
                          ]
                        }
                      },
                      "required": [
                        "error"
                      ]
                    },
                    {
                      "description": "The given `customLinkId` does not match any existing custom link.",
                      "title": "Custom Link Not Found",
                      "type": "object",
                      "properties": {
                        "error": {
                          "type": "object",
                          "properties": {
                            "code": {
                              "type": "string",
                              "enum": [
                                "customLinkNotFound"
                              ]
                            },
                            "message": {
                              "type": "string",
                              "example": "A human-readable message to help with debugging."
                            }
                          },
                          "required": [
                            "code",
                            "message"
                          ]
                        }
                      },
                      "required": [
                        "error"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "409": {
            "description": "The given `customLinkId` is already used by the given user.",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Custom Link Already Used",
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string",
                          "enum": [
                            "customLinkAlreadyUsed"
                          ]
                        },
                        "message": {
                          "type": "string",
                          "example": "A human-readable message to help with debugging."
                        }
                      },
                      "required": [
                        "code",
                        "message"
                      ]
                    }
                  },
                  "required": [
                    "error"
                  ]
                }
              }
            }
          },
          "429": {
            "description": "The client has sent too many requests in a short amount of time. ",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string",
                      "enum": [
                        "tooManyRequests"
                      ]
                    }
                  },
                  "required": [
                    "error"
                  ]
                }
              }
            }
          }
        },
        "security": [
          {
            "oauth2": []
          }
        ],
        "summary": "Replace custom user links",
        "tags": [
          "Users"
        ]
      }
    }
  },
  "info": {
    "title": "Core API",
    "description": "",
    "version": "1.0.0",
    "contact": {}
  },
  "servers": [
    {
      "url": "https://app.360learning.com",
      "description": "Production EU"
    },
    {
      "url": "https://app.us.360learning.com",
      "description": "Production US"
    }
  ],
  "components": {
    "securitySchemes": {
      "oauth2": {
        "type": "oauth2",
        "flows": {
          "clientCredentials": {
            "tokenUrl": "/api/v2/oauth2/token",
            "scopes": {}
          }
        },
        "description": "Use the token from the authentication endpoint in the Authorization header.\n\nExample: `Authorization: Bearer <token>`"
      }
    },
    "schemas": {
      "UpdateCustomUserLinkRequestBody": {
        "title": "Update Custom User Link Request Body",
        "type": "object",
        "properties": {
          "customLinkId": {
            "type": "string",
            "description": "The unique ID of the custom link.",
            "format": "ObjectId",
            "example": "507f1f77bcf86cd799439011",
            "pattern": "^[a-fA-F0-9]{24}$"
          },
          "url": {
            "type": "string",
            "description": "The URL of the custom user link.",
            "example": "https://360learning.com"
          }
        },
        "required": [
          "customLinkId",
          "url"
        ]
      }
    }
  },
  "x-readme": {
    "apply-tag-changes": true
  }
}
```