Delete a meeting
client.Meeting.Delete(ctx, id, body) (*MeetingDeleteResponse, error)
DELETE/v1/meetings/{id}
Moves a meeting to the trash. The meeting is soft-deleted and may be restored from the Lightfield UI. Only callers who can edit the meeting (meeting participants or workspace admins) may delete it. Calling delete on a meeting that is already trashed returns a 404.
Required scope: meetings:delete
Rate limit category: Write
Delete a meeting
package main
import (
"context"
"fmt"
"github.com/Lightfld/lightfield-go"
"github.com/Lightfld/lightfield-go/option"
)
func main() {
client := githubcomlightfldlightfieldgo.NewClient(
option.WithAPIKey("My API Key"),
)
meetingDeleteResponse, err := client.Meeting.Delete(
context.TODO(),
"id",
githubcomlightfldlightfieldgo.MeetingDeleteParams{
},
)
if err != nil {
panic(err.Error())
}
fmt.Printf("%+v\n", meetingDeleteResponse.ID)
}
{
"id": "id",
"accessLevel": "FULL",
"createdAt": "createdAt",
"fields": {
"foo": {
"value": "string",
"valueType": "ADDRESS"
}
},
"httpLink": "httpLink",
"objectType": "meeting",
"relationships": {
"foo": {
"cardinality": "cardinality",
"objectType": "objectType",
"values": [
"string"
]
}
},
"updatedAt": "updatedAt",
"externalId": "externalId"
}Returns Examples
{
"id": "id",
"accessLevel": "FULL",
"createdAt": "createdAt",
"fields": {
"foo": {
"value": "string",
"valueType": "ADDRESS"
}
},
"httpLink": "httpLink",
"objectType": "meeting",
"relationships": {
"foo": {
"cardinality": "cardinality",
"objectType": "objectType",
"values": [
"string"
]
}
},
"updatedAt": "updatedAt",
"externalId": "externalId"
}