メインコンテンツへスキップ
POST
https://{tenantDomain}/api/v2
/
jobs
/
users-imports
Go
package example

import (
    client "github.com/auth0/go-auth0/management/client"
    option "github.com/auth0/go-auth0/management/option"
    context "context"
    jobs "github.com/auth0/go-auth0/management/jobs"
)

func do() () {
    client := client.NewClient(
        option.WithToken(
            "<token>",
        ),
    )
    client.Jobs.UsersImports.Create(
        context.TODO(),
        &jobs.CreateImportUsersRequestContent{
            ConnectionId: "connection_id",
        },
    )
}
{
  "status": "pending",
  "type": "users_import",
  "created_at": "<string>",
  "id": "job_0000000000000001",
  "connection_id": "con_0000000000000001",
  "external_id": "<string>"
}

承認

Authorization
string
header
必須

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

ボディ

multipart/form-data
users
string
必須
connection_id
string
デフォルト:con_0000000000000001
必須

connection_id of the connection to which users will be imported.

Pattern: ^con_[A-Za-z0-9]{16}$
upsert
boolean
デフォルト:false

Whether to update users if they already exist (true) or to ignore them (false).

external_id
string

Customer-defined ID.

send_completion_email
boolean
デフォルト:true

Whether to send a completion email to all tenant owners when the job is finished (true) or not (false).

レスポンス

Job successfully created.

status
string
デフォルト:pending
必須

Status of this job.

type
string
デフォルト:users_import
必須

Type of job this is.

created_at
string
必須

When this job was created.

id
string
デフォルト:job_0000000000000001
必須

ID of this job.

connection_id
string
デフォルト:con_0000000000000001
必須

connection_id of the connection to which users will be imported.

Pattern: ^con_[A-Za-z0-9]{16}$
external_id
string

Customer-defined ID.