Remove odata from the command output for planner bucket get.
This can be achieved by changing the accept header from application/json to application/json;odata.metadata=none. In most methods this is already applied except for the method getBucketById.
|
private async getBucketById(id: string): Promise<PlannerBucket> { |
|
const requestOptions: AxiosRequestConfig = { |
|
url: `${this.resource}/v1.0/planner/buckets/${id}`, |
|
headers: { |
|
accept: 'application/json' |
|
}, |
|
responseType: 'json' |
|
}; |
|
|
|
return request.get<PlannerBucket>(requestOptions); |
|
} |
Remove odata from the command output for
planner bucket get.This can be achieved by changing the accept header from
application/jsontoapplication/json;odata.metadata=none. In most methods this is already applied except for the methodgetBucketById.cli-microsoft365/src/m365/planner/commands/bucket/bucket-get.ts
Lines 205 to 215 in c3fe008