Skip to content
  • Auto
  • Light
  • Dark
Get Started

Create

Set
client.Apps.Owners.New(ctx, appID, body) (*AppOwnerNewResponse, error)
put/api/v1/apps/{app_id}/owners

Sets the owners for a given app to the specified list of users.

Parameters
appIDstring

The app_id field for the app to set the owners of.

bodyUserIDsfieldAppOwnerNewParams
Hide ParametersShow Parameters
UserIDsfield
optional
param.Field[[]string]

The user_ids field for the users to set as an owner of the app.

Returns
AppOwnerNewResponseinterface

The empty response message for setting the app owners.

Request example Go
package main

import (
  "context"
  "fmt"

  "github.com/stainless-sdks/-go"
  "github.com/stainless-sdks/-go/option"
)

func main() {
  client := conductoronesdk.NewClient(
    option.WithAPIKey("My API Key"),
  )
  owner, err := client.Apps.Owners.New(
    context.TODO(),
    "app_id",
    conductoronesdk.AppOwnerNewParams{

    },
  )
  if err != nil {
    panic(err.Error())
  }
  fmt.Printf("%+v\n", owner)
}
200 Example
{}