Update
Add
client.Apps.Owners.Update(ctx, userID, params) (*AppOwnerUpdateResponse, error)
post/api/v1/apps/{app_id}/owners/{user_id}
Adds an owner to an app.
Parameters
userIDstring
The userId field.
paramsAppIDfieldBodyfieldAppOwnerUpdateParams
Returns
AppOwnerUpdateResponseinterface
Empty response with a status code indicating success
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.Update(
context.TODO(),
"user_id",
conductoronesdk.AppOwnerUpdateParams{
AppID: "app_id",
},
)
if err != nil {
panic(err.Error())
}
fmt.Printf("%+v\n", owner)
}
200 Example
{}