Skip to main content

Update Account

PUT 

https://sailpoint.api.identitynow.com/v3/accounts/:id

Use this API to update an account with a PUT request.

This endpoint submits an account update task and returns the task ID.

Note: You can only use this PUT endpoint to update accounts from flat file sources.

Request

Path Parameters

    id stringrequired

    Account ID.

    Example: ef38f94347e94562b5bb8424a56397d8

Bodyrequired

    attributes objectrequired

    The schema attribute values for the account

    property name*any

    The schema attribute values for the account

    Example: {"city":"Austin","displayName":"John Doe","userName":"jdoe","sAMAccountName":"jDoe","mail":"john.doe@sailpoint.com"}

Responses

Async task details.

Schema
    idstringrequired

    id of the task

    Example: 2c91808474683da6017468693c260195

Authorization: oauth2

type: Personal Access Token
scopes: idn:accounts:manage
user levels: ORG_ADMIN, SOURCE_ADMIN, SOURCE_SUBADMIN
package main

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

func main() {

url := "https://sailpoint.api.identitynow.com/v3/accounts/:id"
method := "PUT"

payload := strings.NewReader(`{
"attributes": {
"city": "Austin",
"displayName": "John Doe",
"userName": "jdoe",
"sAMAccountName": "jDoe",
"mail": "john.doe@sailpoint.com"
}
}`)

client := &http.Client {
}
req, err := http.NewRequest(method, url, payload)

if err != nil {
fmt.Println(err)
return
}
req.Header.Add("Content-Type", "application/json")
req.Header.Add("Accept", "application/json")
req.Header.Add("Authorization", "Bearer <TOKEN>")

res, err := client.Do(req)
if err != nil {
fmt.Println(err)
return
}
defer res.Body.Close()

body, err := io.ReadAll(res.Body)
if err != nil {
fmt.Println(err)
return
}
fmt.Println(string(body))
}
Request Collapse all
Base URL
https://sailpoint.api.identitynow.com/v3
Auth
Parameters
— pathrequired
Body required
{
  "attributes": {
    "city": "Austin",
    "displayName": "John Doe",
    "userName": "jdoe",
    "sAMAccountName": "jDoe",
    "mail": "john.doe@sailpoint.com"
  }
}
ResponseClear

Click the Send API Request button above and see the response here!